This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
packages: | |
yum: | |
gcc-c++: [] | |
make: [] | |
sources: | |
/home/ec2-user: http://download.redis.io/releases/redis-2.8.4.tar.gz | |
commands: | |
redis_build: | |
command: make | |
cwd: /home/ec2-user/redis-2.8.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import redis | |
r = redis.StrictRedis() | |
r.zadd('k1', 1, 'a', 2, 'b', 3, 'c') | |
r.zadd('k2', 2, 'a', 3, 'b', 4, 'c') | |
r.zadd('k3', 3, 'a', 4, 'b', 5, 'c') | |
from zunion_range_score import zunion_range_score as zunionrangescore |