cloudflare-kv

Store and retrieve key-value data in Cloudflare Workers KV.

22|1|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/itechmeat/llm-code --skill cloudflare-kv-itechmeat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-kv
Source: https://github.com/itechmeat/llm-code/tree/main/skills/cloudflare-kv
Command: npx skills add https://github.com/itechmeat/llm-code --skill cloudflare-kv-itechmeat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Cloudflare KV provides a scalable, edge-friendly key-value store for serverless Workers, enabling fast access to application state, configuration, and cached data without managing a separate database.

Core Features & Use Cases

  • Namespace binding and configuration for Worker environments
  • KV operations: put, get, list, delete, and getWithMetadata
  • Expiration/TTL and metadata support, plus edge caching considerations
  • Bulk operations via Wrangler and REST API for bulk data management
  • Real-world use cases: session storage, feature flags, config stores, and edge data caching

Quick Start

  • Create a KV namespace and bind it in wrangler.json or wrangler.toml
  • Use env.MY_KV in your Worker to read and write values
  • Use list() with a prefix to enumerate keys efficiently

Frequently Asked Questions about cloudflare-kv

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use Cloudflare Workers KV to store and retrieve key-value data at the edge?

To use Cloudflare Workers KV, bind a namespace in your wrangler configuration and access it via env.MY_KV in your Worker to execute put, get, list, and delete operations for edge data management.

What is the best way to configure KV namespace binding for a Cloudflare Worker?

Configuring KV namespace binding requires defining the namespace in wrangler.json or wrangler.toml, which links the edge key-value store to your Worker environment for fast state access.

Can I set expiration TTL and metadata for Cloudflare KV entries?

Yes, Cloudflare KV supports expiration TTL and metadata, allowing you to automatically expire keys and retrieve associated attributes using getWithMetadata alongside edge caching considerations.

Does Cloudflare KV support bulk operations via Wrangler and REST API?

Cloudflare KV supports bulk operations via Wrangler and REST API, enabling scalable data management by allowing you to write and delete multiple key-value pairs efficiently.

When should I use Cloudflare KV for edge data caching instead of a separate database?

Use Cloudflare KV for edge data caching when you need fast, scalable access to application state, configuration, or session storage without the overhead of managing a separate database.

How do I enumerate keys efficiently in a Cloudflare Workers KV namespace?

You can enumerate keys efficiently in a Cloudflare Workers KV namespace by using the list() operation with a prefix, which allows you to filter and retrieve keys directly at the edge.