]>
git.saurik.com Git - redis.git/blame - client-libraries/ruby/examples/basic.rb
Commit | Line | Data |
ed9b544e |
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'] |