dashing-js-redis
v0.0.3
Published
Redis history store for dashing-js activity.
Downloads
5
Readme
dashing-js redis store
Provides a redis backing store for dashing-js history to replace the default, in-memory store shipped out-of-box.
Important: Based on the Sparkbox fork of dashing-js fork of dashing-js.
Getting Started
dashing-js-redis is added to your dashing-js generated project.
npm install --save dashing-js-redis
- Update
server.js
:
var dashing = require('dashing-js').Dashing();
var RedisHistory = require('dashing-js-redis');
dashing.useHistoryStore(new RedisHistory());
dashing.start();
Configuration
Options for
redis.createClient
can be provided via the RedisHistory
constructor.
Example
var history = new RedisHistory( {
port: 6379,
host: '127.0.0.1',
options: { /* other options */ }
});
dashing.useHistoryStore(history);