Created
July 22, 2015 11:37
-
-
Save agrison/b35f6d6e403320fb1344 to your computer and use it in GitHub Desktop.
generate 1M redis SET instructions
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 __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