README.md in kredis-0.2.2 vs README.md in kredis-0.2.3
- old
+ new
@@ -62,9 +62,18 @@
counter.increment by: 2 # => SETEX "mycounter" 900 0 + INCR "mycounter" 2
2 == counter.value # => GET "mycounter"
sleep 6.seconds
0 == counter.value # => GET "mycounter"
+cycle = Kredis.cycle "mycycle", values: %i[ one two three ]
+:one == cycle.value
+cycle.next
+:two == cycle.value
+cycle.next
+:three == cycle.value
+cycle.next
+:one == cycle.value
+
enum = Kredis.enum "myenum", values: %w[ one two three ], default: "one"
"one" == enum.value
true == enum.one?
enum.value = "two"
"two" == enum.value