Launch a local Redis server locally using Serverless Offline.
npm install serverless-offline-redis-serverRun a local Redis server using Serverless Offline.
This plugin is intended for local development only, and is therefore only invoked onserverless offline start.
1. Install the Redis server locally.
2. Add this plugin as a dev dependency:
``bash`
# NPM
npm install --save-dev serverless-offline-redis-server
# Yarn
yarn add -D serverless-offline-redis-server
serverless.yml
3. Add the plugin to your file:
`yaml`
plugins:
- serverless-offline-redis-server
You can pass any configuration accepted by redis-server via the custom.redis property in your serverless.yml.
`yaml``
service: myservice
custom:
redis:
port: 8888