runtime-cache

Provide per-region ephemeral key-value caching with tag-based invalidation via @vercel/functions.

1|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/esneiderbravo/hackaton --skill runtime-cache-esneiderbravo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: runtime-cache
Source: https://github.com/esneiderbravo/hackaton/tree/main/.github/skills/runtime-cache
Command: npx skills add https://github.com/esneiderbravo/hackaton --skill runtime-cache-esneiderbravo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides an ephemeral per-region key-value cache with tag-based invalidation to enable fast, regional data sharing for serverless apps and across Functions, Routing Middleware, and Builds.

Core Features & Use Cases

  • Ephemeral regional cache with per-region isolation and TTL control.
  • Tag-based invalidation for granular cache coherence and bulk purges.
  • Framework-agnostic API surface via @vercel/functions for cross-function caching.
  • Use cases include caching API responses, computed values, and cross-function state in serverless workflows.

Quick Start

Store data in the runtime cache, retrieve it across functions regionally, and invalidate by tag to keep data fresh.

Frequently Asked Questions about runtime-cache

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

FAQPage Schema
How do I cache API responses across serverless functions in Vercel?

You can cache API responses across serverless functions using an ephemeral per-region key-value cache. It leverages the @vercel/functions API surface to store and retrieve computed data regionally across Functions, Routing Middleware, and Builds within your deployment.

What is tag-based cache invalidation and how does it work for serverless apps?

Tag-based cache invalidation groups cached keys by specific tags, allowing granular cache coherence and bulk purges. When data changes, you invalidate by tag to ensure stale serverless cache entries are removed without clearing the entire regional store.

Does Vercel runtime cache support per-region isolation for cross-function state?

Yes, the Vercel runtime cache provides per-region isolation for cross-function state. This ephemeral key-value store ensures regional data sharing without cross-region latency, keeping cached data close to your serverless execution environment.

Can I use TTL and namespace options for cache management in serverless workflows?

Yes, you can use TTL-based caching and namespace options for cache management in serverless workflows. These features, alongside optional key hashing, provide control over cache lifespans and observability across your project deployment environment.

What are the limitations of using an ephemeral regional cache for serverless apps?

An ephemeral regional cache is temporary and does not persist data permanently across deployments. It is limited to regional isolation and TTL constraints, meaning cached data expires and should not be relied upon for durable, long-term cross-function state storage.