You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -175,7 +175,7 @@ and conditional execution with `WATCH`. Redis does not support cross-node transa
175
175
transaction must live in the same key slot. To use transactions, you can use `#multi` method same as the [redis-client](https://github.com/redis-rb/redis-client#usage):
176
176
177
177
```ruby
178
-
conn.multi do |tx|
178
+
cli.multi do |tx|
179
179
tx.call('INCR', 'my_key')
180
180
tx.call('INCR', 'my_key')
181
181
end
@@ -192,7 +192,7 @@ it _is_ possible to perform a transaction on the keys `{tag}foo` and `{tag}bar`.
192
192
To perform such transactions on this gem, use `hashtag:
193
193
194
194
```ruby
195
-
conn.multi do |tx|
195
+
cli.multi do |tx|
196
196
tx.call('INCR', '{user123}coins_spent')
197
197
tx.call('DECR', '{user123}coins_available')
198
198
end
@@ -201,11 +201,11 @@ end
201
201
```ruby
202
202
# Conditional execution with WATCH can be used to e.g. atomically swap two keys
0 commit comments