litellm/tests/unit/caching
devin-ai-integration[bot] 826849f6aa
Some checks failed
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
LiteLLM Rust / rust-wheel (push) Has been cancelled
Terraform Provider / gofmt, vet, build, test (push) Has been cancelled
Terraform Provider / Provider endpoints vs proxy OpenAPI schema (push) Has been cancelled
perf(proxy): one post-call Redis pipeline per backend for spend, rate-limit, routing and response-cache writes (#43424)
Post-call owners declare into one request-scoped RedisBatch per Redis backend: spend counter
increments and reservation reconciliation, rate-limit token Lua updates and refunds, parallel-slot
release (freed locally at once), deployment TPM, and compatible async response-cache SETs. The batch
is sent once the success and failure callbacks have run, or on a deadline, and pending batches are
drained at shutdown before Redis disconnects. nx writes, non-Redis caches and calls outside a request
stay direct; numeric string TTLs keep the direct-path coercion.

Resolves LIT-8883

Co-authored-by: yassin <yassin@berri.ai>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-09-29 16:42:15 -07:00
..
__init__.py
test_azure_blob_cache.py
test_cache_preset_key.py
test_caching.py fix(params): validate stream_chunk_size once, before any provider call (#43222) 2026-09-26 23:01:20 +00:00
test_caching_handler.py fix(otel): detach post-response service spans by request phase, name redis spans by operation (#43237) 2026-09-26 10:10:12 -07:00
test_check_and_fix_namespace_none_guard.py
test_disk_cache.py
test_dual_cache.py perf(router): fetch cooldown state and usage counters in one Redis round trip (#43320) 2026-09-29 13:52:20 -07:00
test_embedding_router.py
test_evicted_client_closer.py
test_gcs_cache.py
test_in_memory_cache.py
test_llm_caching_handler.py
test_llm_client_cache_e2e.py
test_qdrant_semantic_cache.py
test_redis_batch.py perf(proxy): one request-scoped Redis pipeline for auth, spend, rate-limit and routing reads 2026-09-29 23:24:28 +00:00
test_redis_cache.py fix(ci): stop stale CI reds, keep unit tests off the host env, retry CyberArk policy conflicts (#43294) 2026-09-26 09:25:13 -07:00
test_redis_cluster_cache.py
test_redis_cluster_node_isolation.py
test_redis_connection_pool.py
test_redis_semantic_cache.py
test_request_redis_batch_post_call.py perf(proxy): one post-call Redis pipeline per backend for spend, rate-limit, routing and response-cache writes (#43424) 2026-09-29 16:42:15 -07:00
test_request_redis_batch_pre_call.py perf(proxy): one request-scoped Redis pipeline for auth, spend, rate-limit and routing reads 2026-09-29 23:24:28 +00:00
test_responses_stream_cache_keys.py
test_s3_cache.py
test_unit_test_caching.py
test_valkey_semantic_cache.py