Skip to content

Instantly share code, notes, and snippets.

@ducu
ducu / test.py
Last active June 18, 2016 07:23 — forked from josiahcarlson/zunion_range_score.py
ZUNIONRANGESCORE
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
@ducu
ducu / redis.config
Last active April 19, 2017 08:40 — forked from yustam/redis.config
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