Skip to content
EXPERIMENTAL: Redis connector for LoopBack.
Branch: master
Clone or download
#58 Compare This branch is 75 commits ahead, 4 commits behind jugglingdb:master.
raymondfeng 3.0.0
 * upgrade dependencies (Raymond Feng)
 * Settings bug fix when passing an host without a port (Antonio Trapani)
 * Fix for error-logging if error is not a string (makowski)
 * Fix for destroyAll (GARETH CLYNE)
 * Update paid support URL (Siddhi Pai)
 * Start 3.x + drop support for Node v0.10/v0.12 (siddhipai)
 * Drop support for Node v0.10 and v0.12 (Siddhi Pai)
 * Start the development of the next major version (Siddhi Pai)
 * fixes #44: stop destroyAll returning errors (Robert McLeod)
 * refs #41: stop upsert existing model returns string on non-string fields (Robert McLeod)
 * Update README.md (Rand McKinney)
Latest commit d68f5de Aug 21, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update paid support URL Dec 6, 2016
intl Update translation files - round#2 (#31) Sep 28, 2016
lib upgrade dependencies Aug 21, 2018
test Merge pull request #43 from penguinpowernz/41-upsert-strings Aug 21, 2018
.eslintrc Configure ESLint Sep 15, 2016
.gitignore Add translated files Sep 22, 2016
.travis.yml Refactor to be a loopback connector Oct 12, 2013
CHANGES.md 3.0.0 Aug 21, 2018
CONTRIBUTING.md Fix bad CLA URL in CONTRIBUTING.md Dec 29, 2014
LICENSE update license text May 13, 2016
NOTICE Add NOTICE Jul 19, 2015
README.md Update README.md Nov 7, 2016
index.js Fix linting errors Sep 15, 2016
package.json 3.0.0 Aug 21, 2018

README.md

StrongLoop Labs

This project provides early access to advanced or experimental functionality. It may lack usability, completeness, documentation, and robustness, and may be outdated.

However, StrongLoop supports this project. Community users, please report bugs on GitHub.

loopback-connector-redis

The official Redis connector for the LoopBack framework.

Usage

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.

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

  1. Start the Redis server (using the default port)
  2. Run npm test

WARNING

Existing data in database 0 may be deleted

You can’t perform that action at this time.