]>
git.saurik.com Git - redis.git/blame_incremental - client-libraries/ruby/examples/basic.rb
... / ...
Commit | Line | Data |
| 1 | require 'rubygems' |
| 2 | require 'redis' |
| 3 | |
| 4 | r = Redis.new |
| 5 | |
| 6 | r.delete('foo') |
| 7 | |
| 8 | puts |
| 9 | |
| 10 | p'set foo to "bar"' |
| 11 | r['foo'] = 'bar' |
| 12 | |
| 13 | puts |
| 14 | |
| 15 | p 'value of foo' |
| 16 | p r['foo'] |