mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05: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']
|