Community-maintained plugin for centralized Redis connection management in Strapi v4. Version 1.1.0 (August 2022) wraps ioredis to support single nodes and sentinel replicas. Unlike ad-hoc Redis clients, it provides a global connection pool accessible via Strapi's plugin API. Alpha stage: not officially supported by Strapi, limited documentation, no Sharding examples, and infrequent releases.
npm install strapi-plugin-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Enables the plugin in Strapi config and uses the default Redis connection in a bootstrap lifecycle.
Upgrade your Strapi project to v4 or use an alternative Redis connector for Strapi v3.
Wrap your config object in a function: module.exports = ({ env }) => ({ redis: { enabled: true, config: { default: { ... } } } })If you need cluster support, consider using ioredis directly with a custom connection configuration.
Pin the plugin version in package.json and test after upgrades.
Use correct sentinel config: { sentinels: [{ host: 'sentinel1', port: 26379 }], name: 'mymaster' }Access strapi.plugin inside a lifecycle method like 'bootstrap' or 'register'.
Ensure Redis is running: redis-server. Check config: host/port, and that password is correct if set.
Run 'npm install strapi-plugin-redis' and add 'redis: { enabled: true }' to config/plugins.js.Install ioredis: npm install ioredis