0.0.3 • Published 9 years ago

dashing-js-redis v0.0.3

Weekly downloads
6
License
MIT
Repository
-
Last release
9 years ago

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.

  1. npm install --save dashing-js-redis
  2. 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);
0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago