runtime-cache

Cache API responses and computed data with tag-based invalidation for Vercel Functions.

Updated May 31, 2026
One-click install
npx skills add https://github.com/vinhnguyenn020325-cmd/dinzkorea --skill runtime-cache-vinhnguyenn020325-cmd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: runtime-cache
Source: https://github.com/vinhnguyenn020325-cmd/dinzkorea/tree/main/.test-vercel-plugin/skills/runtime-cache
Command: npx skills add https://github.com/vinhnguyenn020325-cmd/dinzkorea --skill runtime-cache-vinhnguyenn020325-cmd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @vercel/functions, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of implementing caching strategies beyond framework-level caching, providing an ephemeral per-region key-value cache for efficient data retrieval and management.

Core Features & Use Cases

  • Per-Region Cache: Offers a key-value store that is region-specific, ensuring data isolation and optimized performance.
  • Tag-Based Invalidation: Enables granular cache control through tags, allowing for efficient invalidation of cached data.
  • Use Case: For instance, when you need to cache API responses or computed data across serverless functions, this Skill can help reduce database load and improve response times.

Quick Start

To set up the runtime cache, use the getCache() function from @vercel/functions and store your data with a TTL and tags.

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?

To cache API responses in Vercel serverless functions, use the runtime-cache Skill which provides an ephemeral per-region key-value store. It utilizes the getCache() function from @vercel/functions to store computed data and reduce database load.

What is ephemeral per-region caching in Vercel?

Ephemeral per-region caching is a key-value store provided by runtime-cache that ensures data isolation and optimized performance for specific regions. It acts as a serverless-native Redis alternative for Vercel Functions and Routing Middleware.

Do I need @vercel/functions to use runtime-cache?

Yes, you need @vercel/functions to use runtime-cache because it is a required dependency. The Skill relies on this package to access the getCache() function for storing data with TTL and tags in Vercel Functions, Middleware, and Builds.

Does Vercel ephemeral cache support tag-based invalidation?

Yes, Vercel ephemeral cache supports tag-based invalidation through the runtime-cache Skill. This mechanism enables granular cache control by allowing you to assign tags to stored data for efficient and targeted invalidation.

What is the best way to invalidate cached data in serverless functions?

The best way to invalidate cached data in serverless functions is using tag-based invalidation. The runtime-cache Skill allows you to group cached API responses and computed data with tags, enabling efficient and granular cache clearing.

Can I use runtime-cache as a Redis alternative for Vercel builds?

Yes, you can use runtime-cache as a serverless-native Redis alternative for Vercel builds. It provides an ephemeral per-region key-value cache designed to handle data retrieval efficiently throughout the Vercel ecosystem.