Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Latest commit

 

History

History
51 lines (42 loc) · 1.17 KB

File metadata and controls

51 lines (42 loc) · 1.17 KB

deepstream.io-msg-redis npm version

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();