-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
27 lines (20 loc) · 752 Bytes
/
Copy pathREADME
File metadata and controls
27 lines (20 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# redisPlatform
a rpc platform base on redis 3.0.2 stable version
using doc and design doc :
http://www.jacketzhong.com/?p=220
usage:
1. download the code
2. cd deps && chmod +x update-jemalloc.sh && ./update-jemalloc.sh 3.6.0
3. cd redisPlatform && chmod +x src/mkreleasehdr.sh && make
4. cd solib && make -f cpp_Makefile && chmod +x c_Makefile
5. cd src && ./redis-server ../redis.conf
6. start client: redis-cli -p 4379 -a jacketzhong
7. test: rso 0x12347 '{ "argv1": 11, "argv2": 25 }'
then you can play it
the result will be: (cpp so module)
127.0.0.1:4379> rso 0x12347 '{ "argv1": 11, "argv2": 25 }'
sum:36
127.0.0.1:4379> rso 0x12347 '{ "argv1": 11, "argv2": 25 }'
sum:36
127.0.0.1:4379> rso 0x12347 '{ "argv1": 11, "argv2": 35 }'
sum:46