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]

test_redis_caching_llm_caching_ttl

Ishaan Jaffafcd00bdc088
diff --git a/tests/local_testing/test_caching.py b/tests/local_testing/test_caching.py
index 30feb09f9df..43dafd72932 100644
--- a/tests/local_testing/test_caching.py
+++ b/tests/local_testing/test_caching.py
@@ -2342,7 +2342,7 @@ async def test_redis_caching_llm_caching_ttl(sync_mode):
# Verify that the set method was called on the mock Redis instance
mock_redis_instance.set.assert_called_once_with(
- name="test", value='"test_value"', ex=120
+ name="test", value='"test_value"', ex=120, nx=False
)
## Increment cache