Sha256: 6680562da897d531e22fe76c89027c9595bb7b4a4d8b3e24dab2635a09546d0c

Contents?: true

Size: 220 Bytes

Versions: 6

Compression:

Stored size: 220 Bytes

Contents

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')

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
adamwiggins-redis-rb-0.1.1 examples/incr-decr.rb
vanity-1.3.0 vendor/redis-rb/examples/incr-decr.rb
mikeg-vanity-1.3.0 vendor/redis-rb/examples/incr-decr.rb
vanity-1.2.0 vendor/redis-rb/examples/incr-decr.rb
vanity-1.1.1 vendor/redis-rb/examples/incr-decr.rb
vanity-1.1.0 vendor/redis-rb/examples/incr-decr.rb