Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.24 KB

README.md

File metadata and controls

45 lines (29 loc) · 1.24 KB

loopback-connector-redis

StrongLoop Labs

StrongLoop Labs projects provide early access to advanced or experimental functionality. In general, these projects may lack usability, completeness, documentation, and robustness, and may be outdated. However, StrongLoop supports these projects: Paying customers can open issues using the StrongLoop customer support system (Zendesk), and community users can report bugs on GitHub.

NOTE: THIS MODULE IS PRE-RELEASE AND UNDER ACTIVE DEVELOPMENT

Redis connector for LoopBack.

Usage

To use it you need [email protected].

  1. Setup dependencies in package.json:

    {
      ...
      "dependencies": {
        "loopback-datasource-juggler": "~1.0.0",
        "loopback-connector-redis": "latest"
      },
      ...
    }
  2. Use:

        var DataSource = require('loopback-datasource-juggler').DataSource;
        var ds = new DataSource('redis');

Running tests

Make sure you have redis server running on default port, then run

npm test

Be careful, it could delete your data in database number 0

MIT License