freeskillv2.0.0✓ verified
caching-strategies
Deep reference for caching — what to cache, cache-aside vs read/write-through/write-behind, TTLs with jitter, eviction (LRU/LFU/FIFO), invalidation, and surviving stampedes (thundering herd / dogpile). Worked examples and a runnable jitter check.
$npx vanara install caching-strategies
Free & open source (Apache-2.0) — view the source on GitHub.
Overview
Caching is the cheapest order-of-magnitude performance win available, and the fastest way to serve *confidently wrong* data. The hard part was never reading from a cache — it's invalidation, consistency under concurrency, and what happens the moment the cache is cold or wrong. This skill is the deep reference: the patterns, the decisions, the trade-offs, and the failure modes that page you at 3am.
What it covers
- What to cache
- Read & write patterns
- TTL, eviction & jitter
- Invalidation
- Stampede control (thundering herd / dogpile)
- HTTP caching
- Cache Read/Write Patterns
- Eviction, TTL & Jitter