Adonis Redis is the official Redis provider for the AdonisJS framework (v4.x LTS). Version 1.0.1 wraps ioredis and provides a convenient way to configure, connect, and use Redis within AdonisJS applications. It supports multiple connections, Pub/Sub, and cluster configuration. Released as part of the AdonisJS ecosystem, it follows the same release cadence as the framework itself. Compared to using ioredis directly, it integrates seamlessly with AdonisJS's IoC container and configuration system.
npm install adonis-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows complete setup: register providers, configure Redis, and use in a controller with caching.
Add both 'adonis-redis/providers/RedisFactory' and 'adonis-redis/providers/Redis' to providers array.
Add Redis: 'Adonis/Addons/Redis' to aliases in bootstrap/app.js.
For AdonisJS 5, use @adonisjs/redis instead and follow v5 documentation.
Use await Redis.get(...) or .then().
Create config/redis.js with the required connection object.
Register both providers and add Redis alias as shown in quickstart.
Start Redis server or update config/redis.js with correct host/port.
Use const Redis = use('Redis') after registering providers.