serverless-offline-redis-server is a Serverless Framework plugin designed to launch a local Redis server specifically for local development workflows using `serverless-offline`. The package, currently at version 0.0.2, integrates with the `serverless offline start` command to automatically manage a Redis instance alongside your serverless functions. Its primary differentiation lies in simplifying the setup of a local Redis instance within the Serverless Offline ecosystem, eliminating the need for manual Redis server management during development. It acts as a wrapper for the `redis-server` npm package, allowing users to configure Redis properties like port directly in their `serverless.yml`. The release cadence appears to be infrequent given its early version.
npm install serverless-offline-redis-serverVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to install the plugin, configure it in `serverless.yml` to launch a local Redis server, and connect to it from a Serverless function during local development.
Ensure Redis server is installed and accessible in your system's PATH. For macOS, `brew install redis` is common. For other OSes, refer to the official Redis documentation.
Monitor the project's GitHub repository for updates and breaking changes before upgrading. Test thoroughly after any updates.
Ensure this plugin is listed under `devDependencies` and only used during local development. For production, use managed Redis services or deploy a Redis cluster appropriately.
Install Redis server for your operating system (e.g., `brew install redis` on macOS, `apt-get install redis-server` on Debian/Ubuntu, or download from redis.io).
Change the `port` in your `custom.redis` configuration in `serverless.yml` to an available port, or stop the process currently using the port.