https://github.com/rumkin/singular-redis
Redis factory for singular app
https://github.com/rumkin/singular-redis
Last synced: about 1 year ago
JSON representation
Redis factory for singular app
- Host: GitHub
- URL: https://github.com/rumkin/singular-redis
- Owner: rumkin
- License: other
- Created: 2016-12-11T20:40:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-28T19:17:10.000Z (over 9 years ago)
- Last Synced: 2025-03-03T01:46:48.432Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# Singular Redis
Redis factory for singular application.
## Install
Via npm:
```bash
npm i singular-redis
```
## Usage
Usage example:
```javascript
const Singular = require('singular');
const app = new Singular({
config: {
redis: {
host: 'localhost',
port: 6379,
},
},
});
app.module(require('singular-redis'));
app.inject('redis', (redis) => {
// ...
});
```