# -*-coding:utf-8 -*-
import redis
from config.redis_config import CACHE_REDIS_CONF
# CACHE_REDIS_CONF = {
# "host": "x.x.x.x",
# "port": ????,
# "password": ??????,
# "db": ??,
# }
redis_pool = redis.ConnectionPool(max_connections=100, **CACHE_REDIS_CONF)
redis_conn = redis.Redis(connection_pool=redis_pool)
标签:REDIS,CRUD,Redis,CACHE,redis,Client,CONF,pool
From: https://www.cnblogs.com/LexLuc/p/17546107.html