(20250623) - Now using AsyncRedis V3 file and sentinel Json

This commit is contained in:
yatmesh
2025-06-23 11:55:20 +05:30
parent 7f59105003
commit 38d92d039d
+3 -3
View File
@@ -52,7 +52,7 @@ from shared import constants
from utils_v2.date_time import date_time
from utils_v2.database.async_mongo_v2 import AsyncMongo
from utils_v2.database.async_mysql_v2 import AsyncMySQL
from utils_v2.cache.async_redis_cache_v2 import AsyncRedisCache
from utils_v2.cache.async_redis_cache_v3 import AsyncRedisCache
from utils_v2.serialization.json_serializer import JSONSerializer
from utils_v2.api.async_quart import (
set_api_version,
@@ -358,12 +358,12 @@ async def app_startup(**kwargs):
# Caching connections:
current_app.rate_limit_cache = AsyncRedisCache(
connection_string = script_cred["redisCache"]["rateLimit"]["connectionString"],
connection_string = script_cred["redisCache"]["rateLimit"]["sentinelJson"],
debug = enable_debugging,
debug_prefix = "RL Cache | "
)
current_app.module_cache = AsyncRedisCache(
connection_string = script_cred["redisCache"]["funcReturn"]["connectionString"],
connection_string = script_cred["redisCache"]["funcReturn"]["sentinelJson"],
serializer = JSONSerializer(),
debug = enable_debugging,
debug_prefix = "User Cache | "