Skip to content

Add 'smove' method to Kredis::Types::Set #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

CoderMiguel
Copy link
Owner

the Redis documentation currently supports the use of the smove method, this change make that method also available in kredis

example:
my_kredis_set.smove(another_kredis_set.key, value_to_move)

use case:
when using sets as queues for a multi step process it is helpful to move values between sets:
queued -> issued
issued -> completed
issued -> failed & add back to queued for retying

https://redis.io/docs/latest/commands/smove/

the Redis documentation currently supports the use of the `smove` method, this change make that method also available in kredis

 example:
     my_kredis_set.smove(another_kredis_set.key, value_to_move)

use case:
   when using sets as queues for a multi step process it is helpful to move values between sets: 
        queued -> issued
        issued -> completed
        issued -> failed & add back to queued for retying

https://redis.io/docs/latest/commands/smove/
@CoderMiguel CoderMiguel self-assigned this Jan 24, 2025
@CoderMiguel CoderMiguel merged commit 8e91924 into main Jan 24, 2025
@CoderMiguel CoderMiguel deleted the CoderMiguel-add-smove-to-set branch January 24, 2025 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant