]> git.saurik.com Git - redis.git/blob - client-libraries/ruby/examples/basic.rb
Lua client updated
[redis.git] / client-libraries / ruby / examples / basic.rb
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']