Skip to content

Instantly share code, notes, and snippets.

View junfenglx's full-sized avatar
🏠
Working from home

junfeng_hu junfenglx

🏠
Working from home
View GitHub Profile
@mikeyk
mikeyk / gist:1329319
Created October 31, 2011 22:56
Testing storage of millions of keys in Redis
#! /usr/bin/env python
import redis
import random
import pylibmc
import sys
r = redis.Redis(host = 'localhost', port = 6389)
mc = pylibmc.Client(['localhost:11222'])