runtime-cache

Provide a per-region key-value cache for Vercel serverless workloads.

1|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/masermediagroup-stack/CursorSkills --skill runtime-cache-masermediagroup-stack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: runtime-cache
Source: https://github.com/masermediagroup-stack/CursorSkills/tree/main/skills-bundle/plugins-vercel/eb3b6f19e9ca59b23c88d7cc8dfe609388be0fc7/skills/runtime-cache
Command: npx skills add https://github.com/masermediagroup-stack/CursorSkills --skill runtime-cache-masermediagroup-stack

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Runtime Cache provides a regional, ephemeral key-value store with tag-based invalidation to reduce latency and backend load across serverless workloads.

Core Features & Use Cases

  • Regional, per-region cache accessible from Vercel Functions, Routing Middleware, and Builds
  • Tag-based invalidation for granular cache purging
  • Ephemeral storage with LRU eviction and TTL support
  • Framework-agnostic access via @vercel/functions for caching API responses and computed data

Quick Start

Use the runtime cache to store a response for a frequently accessed API in 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 API responses in Vercel serverless functions?

You can cache API responses in Vercel serverless functions by storing computed results in an ephemeral per-region key-value store. This reduces latency by serving subsequent requests directly from the regional cache.

What is tag-based cache invalidation for serverless workloads?

Tag-based cache invalidation for serverless workloads is a mechanism that allows granular cache purging by associating keys with tags. It enables you to selectively invalidate cached responses across per-region deployments without clearing the entire store.

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

Yes, runtime cache is accessible from Vercel Functions, Routing Middleware, and Builds. It integrates with @vercel/functions to provide framework-agnostic caching for session data and computed results across your deployment workflow.

How does per-region isolation work for serverless caching?

Per-region isolation provides separate ephemeral key-value stores for each serverless region. This ensures cached data is localized, reducing cross-region latency while maintaining independent TTL-based eviction and LRU management for each location.

What are the limitations of using ephemeral cache for serverless session data?

Ephemeral cache for serverless session data is limited by its temporary nature, relying on LRU eviction and TTL expiration to manage storage capacity. Data is not persisted permanently and may be evicted unexpectedly during high-traffic periods.