runtime-cache

Cache per-region key-value data in Vercel Functions with TTL and tags.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/namhoangg/agent-starter-kit --skill runtime-cache-namhoangg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: runtime-cache
Source: https://github.com/namhoangg/agent-starter-kit/tree/main/cursor/skills/runtime-cache
Command: npx skills add https://github.com/namhoangg/agent-starter-kit --skill runtime-cache-namhoangg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Vercel Runtime Cache provides a regional, ephemeral key-value store for serverless workloads, enabling fast, isolated caching across functions, middleware, and builds.

Core Features & Use Cases

  • Per-region isolation: caches live in each region and survive deployments.
  • Tag-based invalidation: invalidate groups of keys efficiently across environments.
  • Framework-agnostic API surface: works with any runtime via @vercel/functions.

Quick Start

Trigger a quick cache test by storing and retrieving a sample key from within your serverless function.

Frequently Asked Questions about runtime-cache

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

FAQPage Schema
How do I cache per-region data for serverless workloads on Vercel?

To cache per-region data for serverless workloads on Vercel, you can use a runtime cache within Vercel Functions. This provides an ephemeral key-value store that survives deployments and isolates data across regions to reduce latency.

What is tag-based invalidation in serverless caching?

Tag-based invalidation in serverless caching allows you to invalidate groups of related keys efficiently. By assigning tags to cached entries, you can clear specific data clusters across environments instead of manually purging individual keys.

Can I use a runtime cache with routing middleware and builds?

Yes, you can use a runtime cache with routing middleware and builds. It provides a framework-agnostic API surface via @vercel/functions, allowing fast and isolated caching across functions, middleware, and build processes.

Does Vercel runtime cache support TTL and namespace customization?

Yes, Vercel runtime cache supports TTL, tags, and namespace customization. These features allow you to manage cache lifespans and organize isolated data stores effectively within your serverless applications.

How do I reduce cold-start costs for serverless applications using caching?

To reduce cold-start costs for serverless applications using caching, implement a regional runtime cache. It stores ephemeral data per-region to improve latency and minimize the computational overhead of repeated initializations.

What are the limitations of ephemeral key-value stores in serverless environments?

The limitation of ephemeral key-value stores in serverless environments is their temporary persistence. While data survives deployments and exists per-region, ephemeral caches are not permanent databases and require proper TTL and tag-based invalidation management.