mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
Merge branch 'main' of https://github.com/dataease/SQLBot
This commit is contained in:
@@ -106,9 +106,9 @@ def clear_cache(
|
||||
cacheName=cacheName,
|
||||
keyExpression=keyExpression,
|
||||
)
|
||||
ket_list = cache_key if isinstance(cache_key, list) else [cache_key]
|
||||
key_list = cache_key if isinstance(cache_key, list) else [cache_key]
|
||||
backend = FastAPICache.get_backend()
|
||||
for temp_cache_key in ket_list:
|
||||
for temp_cache_key in key_list:
|
||||
if await backend.get(temp_cache_key):
|
||||
if settings.CACHE_TYPE.lower() == "redis":
|
||||
redis = backend.redis
|
||||
|
||||
Reference in New Issue
Block a user