The standard options supported for the LaunchDarkly Redis integration.

Hierarchy

  • LDRedisOptions

Properties

cacheTTL?: number

The amount of time, in seconds, that recently read or updated items should remain in an in-memory cache. If it is zero, there will be no in-memory caching. The default TTL will be 30 seconds if one is not set.

This parameter applies only to RedisFeatureStore. It is ignored for RedisBigSegmentStore. Caching for RedisBigSegmentStore is configured separately, in the SDK's LDBigSegmentsOptions type, since it is independent of what database implementation is used.

client?: Redis

Set this property if you already have a Redis client instance that you wish to reuse. In this case, redisOpts will be ignored.

prefix?: string

A string that will be prepended to all Redis keys used by the SDK.

redisOpts?: RedisOptions

Optional configuration parameters to be passed to the redis package that handles communication with the Redis server.

This includes properties such as host and port. For more details, see: https://github.com/luin/ioredis

If you leave this property empty, the default is to connect to localhost:6379.

Generated using TypeDoc