npm.io
3.0.2 • Published 3 years ago

systemic-redis

Licence
ISC
Version
3.0.2
Deps
2
Size
13 kB
Vulns
0
Weekly
0
Stars
1

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
    })