
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
adonis-redis
Advanced tools
AdonisJs official redis provider to make working with redis fun and simple.
:pray: This is an official AdonisJs redis provider to make your life easier when working with Redis.
Redis provider makes it easier for you to work with redis and has out of the box support for Pub/Sub.
npm i --save adonis-redis
Once you have installed the provider from the npm, make sure to follow the below steps to setup the provider.
const providers = [
...,
'adonis-redis/providers/RedisFactory',
'adonis-redis/providers/Redis'
]
Redis Factory is a layer on top of IoRedis and Redis provider is something you are going to make use of. So setup an alias for that.
const aliases = {
...,
Redis: 'Adonis/Addons/Redis'
}
Now you are free to make use of Redis anywhere in your application. Make sure to check official docs for same Redis Documentation.
You have to save the configuration for redis inside config/redis.js file. You can define multiple connections inside this file and specify the main connection under the connection property.
module.exports = {
connection: 'redis',
redis: {
port: 6379, // Redis port
host: '127.0.0.1', // Redis host
family: 4, // 4 (IPv4) or 6 (IPv6)
password: 'auth',
db: 0
},
redisAlternate: {
port: 6380, // Redis port
host: '127.0.0.1', // Redis host
family: 4, // 4 (IPv4) or 6 (IPv6)
password: 'auth',
db: 0
}
}
module.exports = {
connection: 'redis',
redis: {
clusters: [
{
port: 6380,
host: '127.0.0.1'
},
{
port: 6381,
host: '127.0.0.1'
}
],
redisOptions: {}
}
}
FAQs
AdonisJs official redis provider to make working with redis fun and simple.
The npm package adonis-redis receives a total of 41 weekly downloads. As such, adonis-redis popularity was classified as not popular.
We found that adonis-redis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.