This commit is contained in:
parent
851a661c6f
commit
3c0a1cf592
|
@ -1,9 +1,14 @@
|
||||||
import redis.asyncio as aredis
|
import redis.asyncio as aredis
|
||||||
|
|
||||||
from services.logger import root_logger as logger
|
import logging
|
||||||
from settings import REDIS_URL
|
from settings import REDIS_URL
|
||||||
|
|
||||||
|
|
||||||
|
# Set redis logging level to suppress DEBUG messages
|
||||||
|
logger = logging.getLogger('redis')
|
||||||
|
logger.setLevel(logging.WARNING)
|
||||||
|
|
||||||
|
|
||||||
class RedisCache:
|
class RedisCache:
|
||||||
def __init__(self, uri=REDIS_URL):
|
def __init__(self, uri=REDIS_URL):
|
||||||
self._uri: str = uri
|
self._uri: str = uri
|
||||||
|
|
Loading…
Reference in New Issue
Block a user