Compute at the Edge
KV & caching
Lesson 3 of 5
Workers KV is a global, eventually consistent key-value store; the Cache API is per-data-center HTTP caching. Knowing which to reach for is half the skill.
What you'll learn
- Read and write Workers KV, with expirationTtl for self-cleaning keys
- Reason about KV's eventual consistency instead of being surprised by it
- Use the Cache API with ctx.waitUntil, and choose between KV and cache deliberately
Members only
A free account unlocks this lesson and every other one.
Runnable challenges, knowledge checks, and progress that syncs across your devices. No card needed.
Not sure yet? Try the free lesson first: The Workers runtime