deepstream.io-msg-redis
v1.0.5
Published
[deepstream](http://deepstream.io) message connector for [redis](http://redis.io/)
Downloads
30
Readme
deepstream.io-msg-redis
deepstream message connector for redis
This connector uses the npm ioredis package. Please have a look there for detailed options.
Install via
deepstream install message redis
Example configuration
plugins:
cache:
name: redis
options:
host: ${REDIS_HOST}
port: ${REDIS_PORT}
# Using with a cluster
# plugins:
# cache:
# name: redis
# options:
# nodes:
# - host: <String>
# port: <Number>
# password: <String>
# - host: <String>
# port: <Number>
# redisOptions:
# password: 'fallback-password'
# maxRedirections: 16
Usage in node
var Deepstream = require( 'deepstream.io' ),
RedisMessageConnector = require( 'deepstream.io-msg-redis' ),
server = new Deepstream();
server.set( 'messageConnector', new RedisMessageConnector( {
port: 5672,
host: 'localhost'
}));
server.start();