Created
October 21, 2015 22:01
-
-
Save 72squared/ffa88efe8f29d3004cca to your computer and use it in GitHub Desktop.
This file contains 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
from rediscluster import RedisCluster | |
startup_nodes = [{"host": "127.0.0.1", "port": 7000}] | |
r = RedisCluster(startup_nodes=startup_nodes, max_connections=32, decode_responses=True) | |
for i in xrange(1000000): | |
d = str(i) | |
r.set(d, d) | |
r.incrby(d, 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment