Caching Architecture

LiteLLM-RS response caching architecture. Covers the two-tier deterministic cache (L1 in-memory + optional L2 Redis) behind LLMCache and DualCache, SHA-256 cache key generation with schema versioning, TTL and eviction policy, request-path wiring for chat completions and embeddings, cache statistics, and admin endpoints. Use when adding or tuning gateway response caching — cache keys, tiers, TTLs or eviction, cache metrics, or invalidation.

majiayu000 Updated 567 repo stars

File contents

majiayu000/litellm-rs/tree/main/.claude/skills/caching-architecture commit b0db8d7403

Frequently asked questions

npx skillmds@latest add majiayu000/caching-architecture