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]

dual cache use always read redis as True by default

Ishaan Jaffca5a117544e5
diff --git a/litellm/caching.py b/litellm/caching.py
index 8a25230582b..db2f93507d3 100644
--- a/litellm/caching.py
+++ b/litellm/caching.py
@@ -1777,7 +1777,7 @@ class DualCache(BaseCache):
redis_cache: Optional[RedisCache] = None,
default_in_memory_ttl: Optional[float] = None,
default_redis_ttl: Optional[float] = None,
- always_read_redis: Optional[bool] = False,
+ always_read_redis: Optional[bool] = True,
) -> None:
super().__init__()
# If in_memory_cache is not provided, use the default InMemoryCache