Commit e258c74
Add the smove method to Kredis::Types::Set (#160)
* Add 'smove' method to Kredis::Types::Set
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/
* Add smove test coverage
* Update lib/kredis/types/set.rb
Co-authored-by: CoderMiguel <[email protected]>
* Update test/types/set_test.rb
Co-authored-by: CoderMiguel <[email protected]>
* linter feedback
* correct Gemfile.lock change
---------
Co-authored-by: David Heinemeier Hansson <[email protected]>1 parent 8850def commit e258c74
2 files changed
+34
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
104 | 133 | | |
105 | 134 | | |
106 | 135 | | |
| |||
0 commit comments