cloudflare-kv

Manage Cloudflare Workers KV namespaces with TTL caching and metadata.

204|30|Updated Nov 8, 2025
One-click install
npx skills add https://github.com/secondsky/claude-skills --skill cloudflare-kv-secondsky
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-kv
Source: https://github.com/secondsky/claude-skills/tree/main/plugins/cloudflare-kv/skills/cloudflare-kv
Command: npx skills add https://github.com/secondsky/claude-skills --skill cloudflare-kv-secondsky

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Cloudflare Workers KV provides edge-key-value storage with TTLs, metadata, and efficient listing to speed up edge-cached data access.

Core Features & Use Cases

  • TTL-based caching: Edge caching for frequently read data.
  • Metadata and list: List keys with metadata and use metadata for filtering.
  • Bulk operations: Read/write/delete multiple keys in batch.
  • Migrate/Integrate: Use KV for fast configuration and lightweight caching.

Quick Start

Create a namespace, bind to your Worker, and perform basic get/put operations with optional 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 cache data at the edge with TTL expiration?

Cloudflare Workers KV provides edge caching with TTL-based expiration, allowing you to store key-value pairs that automatically expire after a specified duration. Use the put operation with a ttl parameter to set cache lifetime, reducing latency for frequently accessed data across distributed locations.

Can I store metadata alongside keys in Cloudflare KV?

Yes, Cloudflare KV supports metadata storage alongside each key-value pair, enabling you to attach filtering criteria, timestamps, or custom attributes. Retrieve and filter keys using metadata without fetching the full value, streamlining list operations and pagination in API responses.

What operations does Cloudflare KV support for bulk data handling?

Cloudflare KV supports put, get, delete, and list operations for both single and batch processing. Perform bulk read/write/delete across multiple keys, handle eventual consistency explicitly, and use waitUntil for asynchronous writes without blocking edge response delivery.

How do I list and paginate keys in Cloudflare KV?

Use the list operation to retrieve keys with pagination support and optional metadata filtering. Cloudflare KV handles pagination cursors for iterating through large keysets efficiently, making it suitable for user preferences, rate-limiting tables, and configuration management at scale.

Can I use Cloudflare KV for rate limiting and user preference storage?

Yes, Cloudflare KV is well-suited for rate limiting, user preferences, and lightweight configuration caching. Combine TTL expiration with metadata and batch operations to track request counts, store user settings, and manage distributed state across edge locations with minimal latency.

What are the limitations of edge caching with Cloudflare KV?

Cloudflare KV exhibits eventual consistency across regions and has per-read latency; it is optimized for read-heavy workloads rather than strongly consistent writes. Use cacheTtl for additional caching layers and understand that list operations scan key metadata only, not full values.