Redis CRUD Client


# -*-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)

posted @ 2023-07-11 22:17  LexLuc  阅读(6)  评论(0编辑  收藏  举报