Storage
Memory
In-memory storage for development and simple Node.js deployments.
The default storage backend. Stores flags in a JavaScript Map within the server process.
Setup
No configuration needed — memory is the default:
nuxt.config.ts
export default defineNuxtConfig({
modules: ['@adamkasper/nuxt-unleash'],
unleash: {
url: 'https://your-proxy.example.com/api/frontend',
token: 'your-frontend-token',
appName: 'my-app',
},
})
Limitations
Memory storage is not suitable for production edge deployments:
- On Cloudflare Workers, each invocation may start with an empty cache
- In clustered Node.js (PM2, multi-instance), each process has its own cache
- On serverless platforms (Vercel, Netlify), cold starts lose all cached data
When to Use
- Local development
- Single-instance Node.js server
- Prototyping and testing