Skip to content

Instantly share code, notes, and snippets.



Created Jul 22, 2015
What would you like to do?
generate 1M redis SET instructions
from __future__ import print_function
import uuid
sample = []
for _ in xrange(1000000):
sample.append("SET %s %s" % (uuid.uuid4(), uuid.uuid4()))
print("\n".join(sample), file=open('sample.input', 'w+'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.