Skip to content

Instantly share code, notes, and snippets.

View balyanrobin's full-sized avatar
🎯
Focusing

Robin Balyan balyanrobin

🎯
Focusing
View GitHub Profile
import redis
class RedisStorage(object):
_redis_pool = {}
@classmethod
def setup_redis_pool(cls, redis_pool):
for k, v in redis_pool.iteritems():
cls._redis_pool[k] = redis.Redis(v[0], v[1])