Skip to content

Instantly share code, notes, and snippets.

@agrison
Created July 22, 2015 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agrison/b35f6d6e403320fb1344 to your computer and use it in GitHub Desktop.
Save agrison/b35f6d6e403320fb1344 to your computer and use it in GitHub Desktop.
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