Стратегии кеширования для веб-приложений

★ 6.6 · engineering

caching is a Claude Code skill that guides the design and review of caching logic, covering invalidation strategies, TTL selection, cache key schemas, and multi-layer caching architectures. It defines four cache layers — in-memory LRU, Redis/Memcached, CDN/Edge, and HTTP cache headers — with a table mapping each to its ideal use case and TTL range. Ready-to-use TypeScript examples include an LRU cache with TTL, a stale-while-revalidate pattern via ioredis, Cache-Control headers in Express/Hono, and TanStack Query configuration with staleTime and gcTime. A dedicated anti-patterns section addresses cache-and-forget, uniform TTL, missing key parameters, and cached error responses. Use this skill when implementing a Redis or CDN cache layer, debugging stale data or cache stampedes, or reviewing any code that reads from or writes to a cache.