diff --git a/app/utils/cache.py b/app/utils/cache.py index 70307970..6be1662b 100644 --- a/app/utils/cache.py +++ b/app/utils/cache.py @@ -113,7 +113,7 @@ def cache_delete_pattern(pattern: str) -> None: full_pattern = f"{_KEY_PREFIX}{pattern}" cursor = 0 while True: - cursor, keys = client.scan(cursor, match=full_pattern, count=100) + cursor, keys = client.scan(cursor, match=full_pattern, count=100) # type: ignore[misc] # sync Redis returns tuple if keys: client.delete(*keys) if cursor == 0: