/deepstream.io-cache-redis

A cache connector for Redis

Primary LanguageTypeScriptOtherNOASSERTION

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.

Installation

npm

npm install @deepstream/cache-redis

yarn

yarn add @deepstream/cache-redis

Basic Setup

config.yml

cache:
  name: redis
  options:
    host: ${REDIS_HOST}
    port: ${REDIS_PORT}
    db: ${REDIS_DB_INDEX} // optional
    ttl: 86400 // optional time to live in seconds

Basic Setup with TLS support

If you need to establish the redis connection via tls, set the tls option:

cache:
  name: redis
  options:
    host: ${REDIS_HOST}
    port: ${REDIS_PORT}
    db: ${REDIS_DB_INDEX} // optional
    ttl: 86400 // optional time to live in seconds
    tls: {}