Read the Vercel Storage announcement
Accelerate your Vercel Workflow with databases optimized for the fastest frontends
Vercel KV is a fully managed, globally replicated, Redis-compatible database optimized for high-performance web apps.
Designed for the evolution of JavaScript and TypeScript frameworks, Vercel KV allows developers to store and retrieve any JavaScript value with a promise-based API, without worrying about serialization.
/server/api/set_session.js
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);
}
+page.server.ts
import kv from '@vercel/kv';
/** @type {import('./$types').PageLoad} */
export async function load() {
await kv.set('session', {admin: true});
const session = await kv.get('session'); // {admin: true}
return {
session: session
};
}
/server/api/set_session.js
import kv from '@vercel/kv';
export default defineEventHandler(async () => {
await kv.set('session', {admin: true});
const session = await kv.get('session'); // {admin: true}
return {
session: session
};
});
A database designed for instant provisioning, unlimited environments, and automatic scaling. No more clusters or connection pooling.
For the lowest-latency reads, replica databases are distributed around the world, and clients are routed to their nearest region.
Built to handle the unpredictable nature of web traffic, scaling up and down as needed
For low-latency, high-throughput reads and writes, designed to work natively with Vercel's compute products.
No setup required. Spend your time building your application, not managing database instances.
Deploy a template that uses Vercel KV and start reading and writing data in minutes.
Vercel is the platform for frontend developers, providing the speed and reliability innovators need to create at the moment of inspiration.
Sign Up Now
Create an account with our website to receive the personalized offers about our products
Already have an account? Login here
Sign Up
Create an account with our website to benefit from 10% discount.
Already have an account? Login here
Promise to only send good stuff!
Special Sales
Exclusive Findings
New Arrivals & Promos
Basically, all you're interested in!