Vercel Runtime Cache driver for unstorage
Provides an unstorage driver which uses the Vercel Runtime Cache API to store data.
This code is extracted from the official unstorage driver for Vercel Runtime Cache API.
``bashUsing pnpm
pnpm add @screeny05/unstorage-driver-vercel-runtime-cache
Usage
`ts
import { createStorage } from 'unstorage';
import vercelRuntimeCacheStorage from '@screeny05/unstorage-driver-vercel-runtime-cache';const storage = createStorage({
driver: vercelRuntimeCacheStorage(),
});
`Nitro configuration:
`ts
export default defineNitroConfig({
storage: {
cache: {
driver: '@screeny05/unstorage-driver-vercel-runtime-cache',
},
},
});
`Nuxt configuration:
`ts
export default defineNuxtConfig({
nitro: {
storage: {
cache: {
driver: '@screeny05/unstorage-driver-vercel-runtime-cache',
},
},
},
});
``