Skip to content

Commit ccfb079

Browse files
committed
Moved to StrictRedis
1 parent e9d6bfb commit ccfb079

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/PyMatcha/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from PyMatcha.utils.logging import setup_logging
3232
from PyMatcha.utils.tables import create_tables
3333
from pymysql.cursors import DictCursor
34-
from redis import Redis
34+
from redis import StrictRedis
3535

3636
PYMATCHA_ROOT = os.path.join(os.path.dirname(__file__), "../..") # refers to application_top
3737
dotenv_path = os.path.join(PYMATCHA_ROOT, ".env")
@@ -149,7 +149,7 @@ def expired_token_callback(expired_token):
149149
logging.debug("Configuring mail")
150150
mail = Mail(application)
151151

152-
redis = Redis(
152+
redis = StrictRedis(
153153
host=os.getenv("REDIS_HOST") if not os.getenv("IS_DOCKER_COMPOSE") else "redis",
154154
port=os.getenv("REDIS_PORT", 6379),
155155
decode_responses=True,

0 commit comments

Comments
 (0)