Nocturnally Psychologizing Millipede
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

deepstream.io-msg-redis

1.0.5 • Public • Published

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

Keywords

none

install

npm i deepstream.io-msg-redis

Downloadsweekly downloads

17

version

1.0.5

license

Apache-2.0

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability