Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 115 lines (85 sloc) 2.722 kb
d50f971 @lp basic readme
lp authored
1 h1. Puredis
2
3 h3. "Redis":http://redis.io/ external for "Pure Data":http://puredata.info/.
4
c2b4a32 @lp build instruction
lp authored
5 h2. Build
6
7 bc. wget https://github.com/lp/puredis/tarball/master
8 PUREDIS_SRC=`find . -name lp-puredis-* -print`
9 tar xzf $PUREDIS_SRC
10 cd ${PUREDIS_SRC:0:20}
c7afdd2 @lp please edit Makefile with system settings before building
lp authored
11 # *** edit the Makefile top portion with proper system settings ***
c2b4a32 @lp build instruction
lp authored
12 make
13
9fcfd9d @lp redis timeout note
lp authored
14 h2. Dependencies
15
16 p. The build process will take care of fetching, compiling and linking to "Hiredis":https://github.com/antirez/hiredis and "libcsv":http://sourceforge.net/projects/libcsv/. The core and purpose of this external, "Redis":http://redis.io/, is not bundled herein and must be installed separately. The only mandatory Redis configuration (redis.conf) option for Puredis is "timeout 0" (meaning no timeout), unless your use of Puredis is limited to short time spans.
17
d50f971 @lp basic readme
lp authored
18 h2. Usage:
19
1575d99 @lp screenshot as png
lp authored
20 !https://github.com/lp/puredis/raw/master/img/puredis-help.png!
d50f971 @lp basic readme
lp authored
21
e454f0d @lp bc corrected
lp authored
22 bc. SET: symbol OK
d50f971 @lp basic readme
lp authored
23 GET: symbol BAR
24 LPUSH: 1
e835382 @lp proper print
lp authored
25 LPUSH: 2
26 LPUSH: 3
27 LPOP: symbol VALUE3
28 LRANGE: list VALUE2 VALUE1
d50f971 @lp basic readme
lp authored
29 HMSET: symbol OK
30 HGET: symbol value2
31 HMGET: list value1 value3
32 HVALS: list value1 value2 value3
33 SADD: 1
34 SADD: 1
35 SADD: 1
36 SADD: 1
37 SADD: 1
e835382 @lp proper print
lp authored
38 SINTER: symbol C
d50f971 @lp basic readme
lp authored
39 SUNION: list C A B
40 ZADD: 1
e835382 @lp proper print
lp authored
41 ZADD: 1
42 ZADD: 1
43 ZADD: 1
44 ZADD: 1
45 ZINCRBY: symbol 4
46 ZRANGEBYSCORE: list D 10 E 100
47 ZRANGE: list A 1 B 2 C 4
d50f971 @lp basic readme
lp authored
48
43209d2 @lp docs for apuredis
lp authored
49 h2. Async Puredis: apuredis
50
51 !https://github.com/lp/puredis/raw/master/img/apuredis-help.png!
52
5201164 @lp spuredis and apuredis docs
lp authored
53 bc. right: 1
54 bang: bang
55 right: 1
56 bang: bang
57 ...
58 left: symbol BAR
59 right: 0
60
61 h2. Pub/Sub Puredis: spuredis
62
63 !https://github.com/lp/puredis/raw/master/img/spuredis-help.png!
64
0767b2e @lp fixed typo
lp authored
65 bc. subscriber: list subscribe X 1
66 subscriber: list subscribe NORTH 2
67 subscriber: list subscribe CHANNEL_Z 3
68 subscriber: list unsubscribe X 2
5201164 @lp spuredis and apuredis docs
lp authored
69 publisher: 1
0767b2e @lp fixed typo
lp authored
70 subscriber: list message CHANNEL_Z BEEEZZZZ
5201164 @lp spuredis and apuredis docs
lp authored
71 publisher: 1
1a29b68 @lp funniest channels
lp authored
72 subscriber: list message NORTH HOHOHO
5201164 @lp spuredis and apuredis docs
lp authored
73 publisher: 0
74
8290277 @lp docs on puredis csv loader
lp authored
75 h2. Loading datasets from .csv files
76
39e1ddf @lp docs follow csv load status
lp authored
77 p. It is also possible to load datasets from csv files in a puredis object. The puredis object won't output anything while loading except for Redis error messages to the pd console. A status message is sent when loading completes.
8290277 @lp docs on puredis csv loader
lp authored
78
79 !https://github.com/lp/puredis/raw/master/img/puredis-csv-help.png!
80
81 p. For csv loading, your files will need to be formatted in a way puredis can understand. (Lines preceded by # are ignored).
82
83 h4. CSV Strings:
e94e4ee @lp formating details
lp authored
84
8290277 @lp docs on puredis csv loader
lp authored
85 bc. # KEY, VALUE
86 KEY1, VALUE1
87 KEY2, VALUE2
88 KEY3, VALUE3
89
90 h4. CSV Lists:
e94e4ee @lp formating details
lp authored
91
8290277 @lp docs on puredis csv loader
lp authored
92 bc. # LIST,ITEM1,ITEM2,...
93 MYLIST,A,B,C,D,E
94 MYLIST2,F,G,H,I,J
95
96 h4. CSV Hashes:
e94e4ee @lp formating details
lp authored
97
8290277 @lp docs on puredis csv loader
lp authored
98 bc. PERSON,AGE,CITY
99 ANNA,26,Vancouver
100 PIETER,32,Dublin
101 SERGEI,41,Moscow
102
103 h4. CSV Sets:
e94e4ee @lp formating details
lp authored
104
8290277 @lp docs on puredis csv loader
lp authored
105 bc. # SET,ITEM1,ITEM2,...
106 MYSET1,A,B,C,D,E
107 MYSET2,F,G,H,I,J
108
109 h4. CSV Sorted Sets:
e94e4ee @lp formating details
lp authored
110
8290277 @lp docs on puredis csv loader
lp authored
111 bc. # ZSET, SCORE1, VALUE1, SCORE2, VALUE2, ...
112 MYZSET1,1,A,2,B,3,C,4,D,5,E
113 MYZSET2,1,F,2,G,3,H,4,I,5,J
114
Something went wrong with that request. Please try again.