loopback-connector-redisnext
v0.0.6
Published
The official Redis connector for the LoopBack Framework.
Downloads
21
Maintainers
Readme
EXPERIMENTAL
StrongLoop Labs provides early access to pre-release or experimental projects. In general, these projects may lack functionality, usability, completeness, documentation, robustness and may be outdated. StrongLoop considers this project under active development and fully supports this project. Paying customers may open issues using the StrongLoop customer support system (Zendesk) while community users are encouraged to submit feature requests/bugs reports using GitHub issues.
loopback-connector-redis
The official Redis connector for the LoopBack framework.
Usage
1. Install dependencies
Install the required dependencies via NPM:
npm install --save loopback-connector-redis
npm install --save loopback-datasource-juggler
This connector depends on
loopback-datasource-juggler
.
2. Configure a Redis datasource
In your code, declare redis as a datasource:
var DataSource = require('loopback-datasource-juggler).DataSource;
var ds = new DataSource('redis');
...
Testing
- Start the Redis server (using the default port)
- Run
npm test
WARNING
Existing data in database 0 may be deleted