From 3cf2dbed95daffa35e60ad4e919b643ed946534f Mon Sep 17 00:00:00 2001 From: amirreza Date: Sun, 3 Nov 2024 16:48:03 +0330 Subject: [PATCH] adjust log messages and comments with new cache server --- panther/caching.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panther/caching.py b/panther/caching.py index 64ef593..14d891c 100644 --- a/panther/caching.py +++ b/panther/caching.py @@ -77,7 +77,7 @@ async def set_response_in_cache(*, request: Request, response: Response, cache_e if cache_exp_time is None: logger.warning( - 'your response are going to cache in redis forever ' + 'your response are going to cache in server forever ' '** set DEFAULT_CACHE_EXP in `configs` or set the `cache_exp_time` in `@API.get()` to prevent this **' ) await cache.set(key, cache_data) @@ -89,7 +89,7 @@ async def set_response_in_cache(*, request: Request, response: Response, cache_e caches[key] = cache_data if cache_exp_time: - logger.info('`cache_exp_time` is not very accurate when `redis` is not connected.') + logger.info('`cache_exp_time` is not very accurate when `redis/valkey` is not connected.') async def get_throttling_from_cache(request: Request, duration: timedelta) -> int: