cloudflare-kv

Manage Cloudflare KV namespaces with CRUD, bulk operations, and TTL expiration.

52|6|Updated Nov 24, 2025
One-click install
npx skills add https://github.com/ovachiever/droid-tings --skill cloudflare-kv-ovachiever
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-kv
Source: https://github.com/ovachiever/droid-tings/tree/main/skills/cloudflare-kv
Command: npx skills add https://github.com/ovachiever/droid-tings --skill cloudflare-kv-ovachiever

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill covers Cloudflare Workers KV usage for caching, configuration, and feature flags with edge caching, TTL, and metadata patterns.

Core Features & Use Cases

  • KV Namespace Management: Create, bind, and manage namespaces.
  • CRUD & Bulk: Get/put/delete/list, plus bulk reads.
  • TTL & Metadata: TTL-based expiration and JSON metadata support.
  • Use Case: Implement a global configuration cache with TTL-based refresh and metadata-driven feature flags.

Quick Start

Use basic KV operations to store and retrieve a configuration key.

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?

Cloudflare KV stores key-value data at edge locations worldwide, enabling you to cache API responses with configurable TTL and cacheTtl settings. Use KV bindings in Wrangler to set up namespaces, then call put() to store responses and get() to retrieve them on subsequent requests.

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

Yes, Cloudflare KV supports TTL-based expiration through the expirationTtl parameter when putting a key. You can also use cacheTtl to control edge cache duration separately from storage TTL, allowing keys to expire at different intervals.

How do I manage configuration and feature flags at the edge?

Store configuration objects and feature flags as JSON metadata in Cloudflare KV namespaces, then retrieve and parse them in Workers. Combine with TTL settings to refresh configurations automatically without redeploying code.

What happens when Cloudflare KV hits rate limits or returns errors?

KV operations may fail with KV_ERROR conditions or 429 rate-limit responses. Handle these by implementing retry logic, fallback values, or graceful degradation in your Worker code to maintain application resilience.

Does Cloudflare KV support listing and bulk operations?

Yes, KV provides list() with pagination support for iterating stored keys, and bulk read operations for fetching multiple values efficiently. Use metadata alongside keys to organize and filter stored data.

Do I need to use Wrangler to work with Cloudflare KV?

Wrangler is the standard development and deployment tool for managing KV namespaces and Workers. While the Cloudflare Workers SDK provides runtime APIs, Wrangler handles namespace binding, local testing, and production setup.