What problem does it solve?
This Skill addresses the need for efficient, serverless-native caching within the Vercel ecosystem, enabling faster data retrieval and reduced load on origin servers by providing a per-region, key-value cache with tag-based invalidation.
Core Features & Use Cases
- Per-Region Caching: Stores data isolated to specific Vercel regions, improving latency for regional users.
- Tag-Based Invalidation: Allows for granular cache purging using tags, ensuring data freshness without full cache resets.
- Framework Agnostic: Integrates with Vercel Functions, Routing Middleware, and Builds, usable across different frameworks.
- Use Case: Cache frequently accessed API responses or computed data in a serverless function, and then invalidate that cache using a tag whenever the underlying data is updated via a CMS webhook.
Quick Start
Use the runtime-cache skill to set a key named 'user:123' with user data, a TTL of 3600 seconds, and tags 'users' and 'user:123'.