Introducing Vercel KV

Authors

1 min read

The Vercel KV product has been sunset. You can now deploy alternative KV stores and other storage solutions through the Vercel Marketplace Storage, with automatic account provisioning and unified billing. Learn more.

Vercel KV is a serverless, durable Redis database, making it easy to implement features like rate limiting, session management, and also manage application state.

The Redis-compatible SDK works from Edge or Serverless Functions and scales with your traffic. KV stores are single region by default, but can be replicated to multiple regions for distributed workloads.

user-prefs.ts
import kv from '@vercel/kv';
export async function getPrefs() {
const prefs = await kv.get('prefs');
return prefs || {};
}
export async function updatePrefs(prefs: Record<string, string>) {
return kv.set('prefs', prefs);
}

Vercel KV is available for Hobby and Pro users during the public beta.

Check out our documentation to learn more.