redis-emitter
v0.0.2
Published
Redis pub/sub as an EventEmitter
Downloads
4
Readme
RedisEmitter
RedisEmitter implement redis pub / sub as a EventEmitter.
Example
var RedisEmitter = require('redis-emitter').RedisEmitter
var emitter = new RedisEmitter()
emitter.on('a nice channel', function(data) {
console.log('got data on a nice channel:', data)
})
var RedisEmitter = require('RedisEmitter').RedisEmitter
var emitter = new RedisEmitter()
emitter.emit('a nice channel', 'some data')
// Close the connection to redis
redis.end()
Install
npm install redis-emitter
Licence
MIT