We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc15c2f commit 1da4608Copy full SHA for 1da4608
README.md
@@ -292,7 +292,7 @@ A development console is available by running `bin/console`.
292
293
From there, you can experiment with Kredis. e.g.
294
295
-```rb
+```erb
296
>> str = Kredis.string "mystring"
297
Kredis (0.1ms) Connected to shared
298
=>
lib/kredis/types/counter.rb
@@ -9,14 +9,14 @@ class Kredis::Types::Counter < Kredis::Types::Proxying
9
10
def increment(by: 1)
11
multi do
12
- set 0, ex: expires_in, nx: true
+ set 0, ex: expires_in, nx: true if expires_in
13
incrby by
14
end[-1]
15
end
16
17
def decrement(by: 1)
18
19
20
decrby by
21
22
0 commit comments