This skill provides production-ready patterns for managing LLM state and context efficiently. It covers Anthropic's native prompt caching to reduce token costs by up to 90%, Redis-based response caching for low-latency repeats, and Cache Augmented Generation (CAG) as a high-performance alternative to traditional RAG. By guiding developers through proper cache invalidation and prefix structuring, it ensures high hit rates and data freshness while significantly improving application responsiveness.
主な機能
01Semantic and exact-match response caching using Redis
021 GitHub stars
03Cache Augmented Generation (CAG) patterns for stable datasets
04Anthropic native prompt caching implementation for static context
05Latency optimization for cache-miss scenarios
06Advanced cache invalidation techniques (TTL, versioning, hash-based)
ユースケース
01Building high-speed AI agents that require massive context without the overhead of RAG retrieval
02Improving user experience by serving instant responses for common or repetitive queries
03Reducing token expenses for applications with large, static system prompts or documentation