3.0.2 • Published 2 years ago
systemic-redis v3.0.2
systemic-redis
A systemic redis component
⚠️ Important notice
Upgrading from version 2.0.1 to versions 2.1.0, 2.1.1 or 2.2.0 is discouraged because the versioning is not correct and there are breaking changes that may break your application.
Please, upgrade directly from version 2.0.1 to version 3.0.0, or keep using version 2.0.1.
Usage
const System = require('systemic')
const redis = require('systemic-redis')
new System()
.configure({
redis: {
url: 'redis://127.0.0.1/1'
}
})
.add('logger', console)
.add('redis', redis()).dependsOn('config', 'logger')
.start((err, components) => {
// Do stuff with components.redis
})