Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Robin Balyan balyanrobin

🎯
Focusing
View GitHub Profile
View __init__.py
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])