Sha256: b903eac4cae096baa276eaec9c7870276801469347a6c90c4fd782fdc24876b7

Contents?: true

Size: 198 Bytes

Versions: 103

Compression:

Stored size: 198 Bytes

Contents

require 'redis'

r = Redis.new

puts
p 'incr'
r.del '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

103 entries across 101 versions & 16 rubygems

Version Path
classiccms-0.5.9 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
classiccms-0.5.8 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
classiccms-0.5.7 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
classiccms-0.5.6 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
classiccms-0.5.5 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
classiccms-0.5.2 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
classiccms-0.5.1 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
classiccms-0.5.0 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
classiccms-0.4.2 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
classiccms-0.4.1 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
classiccms-0.4.0 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
classiccms-0.3.9 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
classiccms-0.3.8 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
classiccms-0.3.7 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
classiccms-0.3.6 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
classiccms-0.3.5 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
classiccms-0.3.4 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
classiccms-0.3.3 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
classiccms-0.3.2 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
classiccms-0.3.1 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb