Last active
May 20, 2016 16:28
-
-
Save henryaj/34861109576284f5f483c67bae1a92cd 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
import sys | |
def main(): | |
sys_write = sys.stdout.write | |
entries = 3.2 * 1e8 # Modify to increase disk usage, this is ~15GB at default | |
for i in xrange(int(entries)): | |
sys_write('SET Key%i Value%i\r\n' % (i, i)) | |
if __name__ == '__main__': | |
main() | |
# Usage: python SoRedisWow.py | redis-cli {your_redis_conf} --pipe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment