Skip to content

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.

2 participants