npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

deepstream.io-cache-redis

1.2.2 • Public • Published

deepstream.io-cache-redis npm version

deepstream cache connector for redis

This connector uses the npm redis package. Please have a look there for detailed options.

Basic Setup

plugins:
  cache:
    name: redis
    options:
      host: ${REDIS_HOST}
      port: ${REDIS_PORT}
      db: ${REDIS_DB_INDEX} // optional
      ttl: 86400 // optional time to live in seconds
var Deepstream = require( 'deepstream.io' ),
    RedisCacheConnector = require( 'deepstream.io-cache-redis' ),
    server = new Deepstream();
 
server.set( 'cache', new RedisCacheConnector( {
  port: 6379,
  host: 'localhost'
}));
 
server.start();

Keywords

none

install

npm i deepstream.io-cache-redis

Downloadsweekly downloads

33

version

1.2.2

license

Apache-2.0

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability