Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @meganet/loopback-connector-redis with all npm packages installed. Try it out:

var loopbackConnectorRedis = require("@meganet/loopback-connector-redis")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@meganet/loopback-connector-redis v3.2.3

The official Redis connector for the LoopBack Framework.

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.


The official Redis connector for the LoopBack framework.


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');


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


Existing data in database 0 may be deleted

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free