(20250623) - Now using AsyncRedis V3 file and sentinel Json
This commit is contained in:
+3
-3
@@ -52,7 +52,7 @@ from shared import constants
|
|||||||
from utils_v2.date_time import date_time
|
from utils_v2.date_time import date_time
|
||||||
from utils_v2.database.async_mongo_v2 import AsyncMongo
|
from utils_v2.database.async_mongo_v2 import AsyncMongo
|
||||||
from utils_v2.database.async_mysql_v2 import AsyncMySQL
|
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.serialization.json_serializer import JSONSerializer
|
||||||
from utils_v2.api.async_quart import (
|
from utils_v2.api.async_quart import (
|
||||||
set_api_version,
|
set_api_version,
|
||||||
@@ -358,12 +358,12 @@ async def app_startup(**kwargs):
|
|||||||
|
|
||||||
# Caching connections:
|
# Caching connections:
|
||||||
current_app.rate_limit_cache = AsyncRedisCache(
|
current_app.rate_limit_cache = AsyncRedisCache(
|
||||||
connection_string = script_cred["redisCache"]["rateLimit"]["connectionString"],
|
connection_string = script_cred["redisCache"]["rateLimit"]["sentinelJson"],
|
||||||
debug = enable_debugging,
|
debug = enable_debugging,
|
||||||
debug_prefix = "RL Cache | "
|
debug_prefix = "RL Cache | "
|
||||||
)
|
)
|
||||||
current_app.module_cache = AsyncRedisCache(
|
current_app.module_cache = AsyncRedisCache(
|
||||||
connection_string = script_cred["redisCache"]["funcReturn"]["connectionString"],
|
connection_string = script_cred["redisCache"]["funcReturn"]["sentinelJson"],
|
||||||
serializer = JSONSerializer(),
|
serializer = JSONSerializer(),
|
||||||
debug = enable_debugging,
|
debug = enable_debugging,
|
||||||
debug_prefix = "User Cache | "
|
debug_prefix = "User Cache | "
|
||||||
|
|||||||
Reference in New Issue
Block a user