fix(caching.py): fix async batch redis get request

This commit is contained in:
Krrish Dholakia 2024-04-10 21:37:07 -07:00
parent 31a5527eb2
commit fb6ded6e40
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -49,3 +49,4 @@ litellm/proxy/vertex_key.json
kub.yaml kub.yaml
loadtest_kub.yaml loadtest_kub.yaml
litellm/proxy/_new_secret_config.yaml litellm/proxy/_new_secret_config.yaml
litellm/proxy/_new_secret_config.yaml

View file

@ -1056,7 +1056,7 @@ class DualCache(BaseCache):
sublist_dict = dict(zip(sublist_keys, redis_result)) sublist_dict = dict(zip(sublist_keys, redis_result))
for key, value in sublist_dict.items(): for key, value in sublist_dict.items():
result[sublist_keys.index(key)] = value[key] result[sublist_keys.index(key)] = value
print_verbose(f"async batch get cache: cache result: {result}") print_verbose(f"async batch get cache: cache result: {result}")
return result return result