Skip to content
vercel avatar

Runtime Cache

Regional key-value cache for Vercel Functions and Middleware with tag-based invalidation and CDN purge helpers.

CCM score
66 of 100
skills.sh installs
312
GitHub stars
353
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers getCache() set, get, delete, and expireTag operations, plus Next.js use cache: remote and revalidateTag integration
  • Includes invalidateByTag and dangerouslyDeleteByTag for purging CDN, Runtime, and Data caches together, and vercel cache CLI purge commands
  • Enforces limits of 2 MB per item, 128 tags per item, 256 bytes per tag, and case-sensitive tags that cannot contain commas
  • Designed for caching beyond framework defaults, and flags direct Redis or @vercel/kv usage in favor of Upstash Redis

Install

$ npx -y skills add vercel/vercel-plugin --skill runtime-cache -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Vercel Runtime Cache API

You are an expert in the Vercel Runtime Cache — an ephemeral caching layer for serverless compute.

What It Is

The Runtime Cache is a per-region key-value store accessible from Vercel Functions, Routing Middleware, and Builds. It supports tag-based invalidation for granular cache control.

  • Regional: Each Vercel region has its own isolated cache
  • Isolated: Scoped per deployment environment (preview vs production); scoped per project on Pro/Enterprise, but shared across all projects on a Hobby team
  • Persistent across deployments: Cached data survives new deploys (except Next.js 16 use cache: remote entries, keyed per build); invalidation via TTL or expireTag
  • Ephemeral: Fixed storage limit per project; LRU eviction when full
  • Framework-agnostic: Works with any framework via @vercel/functions

Key APIs

All APIs from @vercel/functions:

Basic Cache Operations

import { getCache } from '@vercel/functions';

const cache = getCache();

Details

Repository
github.com/vercel/vercel-plugin
Categories
Backend & APIs, DevOps & Cloud
First seen
Jun 3, 2026

Questions

What does the runtime-cache skill help with?

The runtime-cache skill gives guidance on the Vercel Runtime Cache API, an ephemeral per-region key-value cache with tag-based invalidation shared across Functions, Routing Middleware, and Builds. It is meant for caching strategies that go beyond framework-level caching.

Which skills lead the Backend & APIs category on Claude Marketplaces?

Runtime-cache is listed in the Backend & APIs category, alongside entra-app-registration, neon, firebase-basics, firebase-auth-basics and workers-best-practices. It focuses on caching with the Vercel Runtime Cache rather than database or authentication setup.

How do I install the runtime-cache skill?

Run npx -y skills add vercel/vercel-plugin --skill runtime-cache -y in your project. Once installed, the agent gets guidance for setting, getting and expiring cache entries with the getCache API from @vercel/functions.

Does the runtime-cache skill work with Next.js caching?

The skill covers Next.js 16 use cache: remote entries, which store in the Vercel Runtime Cache, and the invalidation functions updateTag and revalidateTag. It also explains that Runtime Cache tags do not apply to ISR pages.

More from vercel/vercel-plugin

All 25

Similar to Runtime Cache

More Backend & APIs