https://github.com/guidesmiths/systemic-redis
A systemic redis component
https://github.com/guidesmiths/systemic-redis
hacktoberfest
Last synced: 5 months ago
JSON representation
A systemic redis component
- Host: GitHub
- URL: https://github.com/guidesmiths/systemic-redis
- Owner: onebeyond
- License: mit
- Created: 2016-07-14T01:02:24.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-07-20T11:48:18.000Z (almost 2 years ago)
- Last Synced: 2024-12-20T16:09:54.465Z (5 months ago)
- Topics: hacktoberfest
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/systemic-redis
- Size: 412 KB
- Stars: 1
- Watchers: 16
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://codeclimate.com/github/onebeyond/systemic-redis/maintainability)
[](https://codeclimate.com/github/onebeyond/systemic-redis/test_coverage)# systemic-redis
A [systemic](https://github.com/guidesmiths/systemic) redis component
## ⚠️ Important notice
Upgrading from version [2.0.1](https://github.com/guidesmiths/systemic-redis/releases/tag/v2.0.1) to versions [2.1.0](https://github.com/guidesmiths/systemic-redis/releases/tag/v2.1.0), [2.1.1](https://github.com/guidesmiths/systemic-redis/releases/tag/v2.1.1) or [2.2.0](https://github.com/guidesmiths/systemic-redis/releases/tag/v2.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](https://github.com/guidesmiths/systemic-redis/releases/tag/v2.0.1) to version [3.0.0](https://github.com/guidesmiths/systemic-redis/releases/tag/v3.0.0), or keep using version 2.0.1.
## Usage
```js
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
})
```