mirror of
https://github.com/fluencelabs/redis
synced 2025-06-15 18:21:21 +00:00
first commit
This commit is contained in:
16
client-libraries/ruby/examples/basic.rb
Normal file
16
client-libraries/ruby/examples/basic.rb
Normal file
@ -0,0 +1,16 @@
|
||||
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']
|
Reference in New Issue
Block a user