Skip to content

sentinel configuration example? #2

@raffaeleguidi

Description

@raffaeleguidi

Hi, I have tried to mimic ioredis configuration for sentinel support, but did not manage to have it working. Do you mind posting a configuration example? My (not working) code goes like this:

var redisStore = require('cache-manager-ioredis');

var redisCache = cacheManager.caching({
  store: redisStore,
  clusterConfig: {
    sentinels: [
       { host: options.CACHE_REDIS_HOST, port: options.CACHE_REDIS_PORT },
       { host: options.CACHE_REDIS_HOST2, port: options.CACHE_REDIS_PORT }
    ],
   name: 'mymaster',
   password: options.CACHE_REDIS_PASS
  }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions