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
finsync_redis-3.3.5 examples/incr-decr.rb
redis-4.0.3 examples/incr-decr.rb
redis-4.1.0.beta1 examples/incr-decr.rb
redis-4.0.2 examples/incr-decr.rb
redis-3.3.5 examples/incr-decr.rb
redis-4.0.1 examples/incr-decr.rb
redis-4.0.0 examples/incr-decr.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/redis-3.3.3/examples/incr-decr.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/examples/incr-decr.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/examples/incr-decr.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/examples/incr-decr.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/redis-3.3.3/examples/incr-decr.rb
redis-3.3.3 examples/incr-decr.rb
abaci-0.3.0 vendor/bundle/gems/redis-3.3.1/examples/incr-decr.rb
abaci-0.3.0 vendor/bundle/gems/redis-2.2.2/examples/incr-decr.rb
abaci-0.3.0 vendor/bundle/gems/redis-3.3.2/examples/incr-decr.rb
redis-4.0.0.rc1 examples/incr-decr.rb
redis-3.3.2 examples/incr-decr.rb
redis-3.3.1 examples/incr-decr.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/redis-3.3.0/examples/incr-decr.rb