Create a gist now

Instantly share code, notes, and snippets.

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