README.md

Created about 12 hours ago

attributes
source_pathreferences/kv/README.md
source_sha2565646cca1a630d61d69da22161ade1aa588ae7c8e330e5358b7f369d710ef69bb
source_urlhttps://github.com/cloudflare/skills/blob/47dfc2ce969bf62acf8bc231198ade4bb02712e0/skills/cloudflare/references/kv/README.md
supporting_skill_id40184
upstream_revision47dfc2ce969bf62acf8bc231198ade4bb02712e0

Cloudflare Workers KV

Use KV for read-heavy configuration, preferences, and application caches that tolerate stale data. Read how KV works before choosing it: reads are eventually consistent, including cached missing keys, and immediate visibility is not guaranteed even in the location of a write.

For atomic updates or coordination, consider Durable Objects; for relational queries, D1; for large objects, R2. Use the storage comparison to choose based on requirements.

Read the current documentation for the task before implementing. Use the KV documentation index to discover additional guides; these files preserve task routes rather than copies of APIs, commands, or numeric limits.

Start here

  • Get started: create a namespace, bind it, and read and write data.
  • configuration.md: bindings, environments, types, local development, CLI, and REST access.
  • api.md: reads, writes, metadata, deletion, bulk operations, and pagination.
  • patterns.md: caching, sessions, key design, versioning, and fallback decisions.
  • gotchas.md: stale reads, concurrent writes, missing values, performance, limits, and pricing.

Children

No children yet.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.