cloudflare-kv

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

16|7|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/jackspace/ClaudeSkillz --skill cloudflare-kv-jackspace
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-kv
Source: https://github.com/jackspace/ClaudeSkillz/tree/main/skills/cloudflare-kv
Command: npx skills add https://github.com/jackspace/ClaudeSkillz --skill cloudflare-kv-jackspace

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides complete guidance for Cloudflare Workers KV usage, including CRUD, bulk ops, TTL, and pagination patterns.

Core Features & Use Cases

  • Namespace creation and binding
  • Get/put/delete/list with per-key TTL and metadata
  • Bulk reads, metadata storage, and edge caching strategies
  • Pagination with cursor and prefix filters

Quick Start

Create a KV namespace, bind it to your Worker, and implement basic read/write with TTL and metadata.

Frequently Asked Questions about cloudflare-kv

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

FAQPage Schema
How do I store and retrieve data at the edge with Cloudflare Workers?

Cloudflare Workers KV enables edge storage by binding a KV namespace to your Worker and using get/put/delete operations. Data stored in KV is replicated globally across Cloudflare's network, delivering low-latency reads and writes from edge locations closest to your users.

Can I set expiration times on individual keys in Cloudflare KV?

Yes, KV supports per-key TTL (time-to-live) settings. When you put a key, specify the ttl parameter in seconds to automatically expire that key. You can also set cacheTtl to control how long responses are cached at the edge.

How do I paginate through large datasets stored in Cloudflare KV?

KV's list operation supports cursor-based pagination and prefix filtering. Use the cursor returned from a list call to fetch the next batch of keys, and filter results by prefix to narrow your dataset before paginating.

What metadata can I attach to keys in Cloudflare KV?

KV allows you to store custom metadata alongside each key-value pair. Store metadata as JSON or structured data in the value itself, or use metadata parameters to track creation time, expiration, or application-specific attributes for retrieval.

How do I handle bulk read and write operations in Cloudflare KV?

KV supports bulk operations for reading and writing multiple keys in a single request. Use batch get/put methods to reduce round trips and improve performance when working with configuration data, feature flags, or state across your Workers.

What are the limits and consistency guarantees for Cloudflare KV in production?

KV is eventually consistent across regions with eventual consistency guarantees. Be aware of rate limits, namespace quotas, and the distinction between development and production bindings when architecting cache invalidation and error handling for high-traffic scenarios.