cloudflare-kv

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

961|99|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/jezweb/claude-skills --skill cloudflare-kv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-kv
Source: https://github.com/jezweb/claude-skills/tree/main/skills/cloudflare-kv
Command: npx skills add https://github.com/jezweb/claude-skills --skill cloudflare-kv

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wrangler, and includes references (resource) components.

What problem does it solve?

This Skill eliminates the complexity of managing global key-value storage, providing instant access to cached data across Cloudflare's worldwide network.

Core Features & Use Cases

  • Global Edge Storage: Store configuration, user preferences, and cached API responses across 300+ locations.
  • Automated Caching: Implement read-through, write-through, and stale-while-revalidate patterns automatically.
  • Use Case: Imagine you need to cache API responses for faster loading. Use this Skill to automatically store and retrieve data with built-in TTL expiration and rate limit handling.

Quick Start

Use the cloudflare-kv skill to store the user configuration data with a 1-hour expiration time.

Frequently Asked Questions about cloudflare-kv

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

FAQPage Schema
How do I cache API responses globally with Cloudflare Workers?

Global caching with Cloudflare Workers uses key-value storage to cache API responses across 300+ edge locations. Store responses with TTL expiration (minimum 60 seconds) to automatically serve cached data, reducing latency and backend load. This Skill handles get, put, and TTL management for read-through and write-through caching patterns.

What are the limits for storing data in Cloudflare KV?

Cloudflare KV enforces strict limits: keys are 512 bytes maximum, values up to 25 MiB, metadata up to 1024 bytes, minimum 60-second TTL, and 1 write per second per key. This Skill manages these constraints and handles rate limit errors to prevent operations from failing when limits are reached.

Can I store user preferences and configuration data at the edge?

Yes, edge storage at Cloudflare KV stores user preferences and configuration data across the global network for instant retrieval. Metadata storage and list operations let you organize and retrieve related data efficiently, enabling personalization and feature flags without database roundtrips.

How do I handle pagination and bulk operations with distributed key-value storage?

Pagination and bulk operations retrieve multiple keys efficiently from distributed storage. This Skill provides list, bulk read, and getWithMetadata methods to fetch related data across the edge network, reducing API calls and enabling efficient data synchronization patterns.

What's the best way to implement stale-while-revalidate caching patterns?

Stale-while-revalidate patterns serve cached data while refreshing it in the background. This Skill automates the pattern by storing responses with TTL expiration and edge caching, letting you serve stale content instantly and update asynchronously without blocking the user.

Do I need Wrangler to deploy Cloudflare KV storage?

Yes, Wrangler is the required CLI tool to deploy and manage Cloudflare Workers and KV namespaces. This Skill uses Wrangler for configuration, local development, and production deployment of key-value storage to the edge.