projects
/
redis.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Erlang 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'
]