Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix async_set_cache

Ishaan Jaff07215e3f7a8f
diff --git a/litellm/caching/redis_cache.py b/litellm/caching/redis_cache.py
index 1d553c9c80d..31e11abf97c 100644
--- a/litellm/caching/redis_cache.py
+++ b/litellm/caching/redis_cache.py
@@ -303,7 +303,7 @@ class RedisCache(BaseCache):
raise e
key = self.check_and_fix_namespace(key=key)
- ttl = self.get_ttl(**kwargs) or kwargs.get("ex", None)
+ ttl = self.get_ttl(**kwargs)
nx = kwargs.get("nx", False)
print_verbose(f"Set ASYNC Redis Cache: key: {key}\nValue {value}\nttl={ttl}")