Skip to content

Instantly share code, notes, and snippets.

@henryaj
Last active May 20, 2016 16:28
Show Gist options
  • Save henryaj/34861109576284f5f483c67bae1a92cd to your computer and use it in GitHub Desktop.
Save henryaj/34861109576284f5f483c67bae1a92cd to your computer and use it in GitHub Desktop.
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