]> git.saurik.com Git - redis.git/blame - client-libraries/ruby/examples/incr-decr.rb
CPP client added thanks to Brian Hammond
[redis.git] / client-libraries / ruby / examples / incr-decr.rb
CommitLineData
ed9b544e 1require 'rubygems'
2require 'redis'
3
4r = Redis.new
5
6puts
7p 'incr'
8r.delete 'counter'
9
10p r.incr('counter')
11p r.incr('counter')
12p r.incr('counter')
13
14puts
15p 'decr'
16p r.decr('counter')
17p r.decr('counter')
18p r.decr('counter')