innkeeper-storeredis
v1.1.5
Published
This is a redis store used by innkeeper. It handles room creation, management, keys, and data.
Downloads
8
Readme
innkeeper-storeredis
innkeeper-storeredis is a memory store for inn-keeper which uses a Redis database.
Usage
The following is a small example using this module with inkeeper-socket.io
:
var app = require('http').createServer( function(){} );
var io = require( 'socket.io' )( app );
var innkeeper = require( 'innkeeper-socket.io' );
var innkeeperStoreRedis = require('innkeeper-storeredis');
var redis = redis = require( 'redis' );
var storeMemory = innkeeperStoreRedis(redis.createClient());
var keeper = innkeeper({
io: io,
memory: storeMemory
});
app.listen( 8888 );
License
MIT, see LICENSE.md for details.