mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 16:48:27 -05:00
19 lines
220 B
Ruby
19 lines
220 B
Ruby
|
require 'rubygems'
|
||
|
require 'redis'
|
||
|
|
||
|
r = Redis.new
|
||
|
|
||
|
puts
|
||
|
p 'incr'
|
||
|
r.delete 'counter'
|
||
|
|
||
|
p r.incr('counter')
|
||
|
p r.incr('counter')
|
||
|
p r.incr('counter')
|
||
|
|
||
|
puts
|
||
|
p 'decr'
|
||
|
p r.decr('counter')
|
||
|
p r.decr('counter')
|
||
|
p r.decr('counter')
|