mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
17 lines
147 B
Ruby
17 lines
147 B
Ruby
require 'rubygems'
|
|
require 'redis'
|
|
|
|
r = Redis.new
|
|
|
|
r.delete('foo')
|
|
|
|
puts
|
|
|
|
p'set foo to "bar"'
|
|
r['foo'] = 'bar'
|
|
|
|
puts
|
|
|
|
p 'value of foo'
|
|
p r['foo']
|