Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 27 lines (19 sloc) 0.535 kb
111e2e8 Added a small MSet/MGet example
B. W. Lewis authored
1 rredis: An R client for Redis
d27c9d4 @pashields Just added a little example in the readme...
pashields authored
2
d20b1e1 Added sorted sets (finally\!)
B. W. Lewis authored
3 NOTE
4
5 1. Redis is evolving rapidly. The rredis client supports many commands that are
6 only available in Redis versions 1.3 and higher.
7
8 EXAMPLE
9
d27c9d4 @pashields Just added a little example in the readme...
pashields authored
10 > library(rredis)
11 > redisConnect()
12 > redisSet('foo', runif(10))
13 > bar <- redisGet('foo')
14 > bar
15 [1] 0.93499818 0.47159536 0.30597259 0.58325228 0.41589498 0.63914212
16 [7] 0.34658694 0.08633471 0.18111369 0.15763507
111e2e8 Added a small MSet/MGet example
B. W. Lewis authored
17
18 > redisMSet(list(x=pi,y='Cazart',z=runif(2)))
19 > redisMGet(list('z','y'))
20 $z
21 [1] 0.1155711 0.7166137
22
23 $y
24 [1] "Cazart"
25
d27c9d4 @pashields Just added a little example in the readme...
pashields authored
26 > redisClose()
Something went wrong with that request. Please try again.