Define config for redis
Redis configuration object
export default defineConfig({ connection: 'main', connections: { main: { host: 'localhost', port: 6379, password: 'secret' }, cache: { host: 'redis-cache.example.com', port: 6379 } }}) Copy
export default defineConfig({ connection: 'main', connections: { main: { host: 'localhost', port: 6379, password: 'secret' }, cache: { host: 'redis-cache.example.com', port: 6379 } }})
Define config for redis