导航

python redis启用线程池管理

Posted on 2015-12-16 14:14  网名还没想好  阅读(791)  评论(0编辑  收藏  举报
pool = redis.ConnectionPool(host=REDIS_HOST, port=REDIS_PORT,max_connections=3,password=REDIS_PASSWORD)
redis = redis.StrictRedis(connection_pool=pool)