Skip to content

Commit 2f1b477

Browse files
fix: Spelling error in the cache component
1 parent 283279f commit 2f1b477

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/common/core/sqlbot_cache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ async def wrapper(*args, **kwargs):
106106
cacheName=cacheName,
107107
keyExpression=keyExpression,
108108
)
109-
ket_list = cache_key if isinstance(cache_key, list) else [cache_key]
109+
key_list = cache_key if isinstance(cache_key, list) else [cache_key]
110110
backend = FastAPICache.get_backend()
111-
for temp_cache_key in ket_list:
111+
for temp_cache_key in key_list:
112112
if await backend.get(temp_cache_key):
113113
if settings.CACHE_TYPE.lower() == "redis":
114114
redis = backend.redis

0 commit comments

Comments
 (0)