PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/client-libraries/ruby/examples/basic.rb

http://redis.googlecode.com/
Ruby | 16 lines | 10 code | 6 blank | 0 comment | 0 complexity | 7a0d913afce31ea5ca5347778073fcd3 MD5 | raw file
 1require 'rubygems'
 2require 'redis'
 3
 4r = Redis.new
 5
 6r.delete('foo')
 7
 8puts 
 9
10p'set foo to "bar"'
11r['foo'] = 'bar'
12
13puts
14
15p 'value of foo'
16p r['foo']