Options
All
  • Public
  • Public/Protected
  • All
Menu

Options for configuring a ConsulFeatureStore.

Hierarchy

  • LDConsulOptions

Index

Properties

cacheTTL?: number

The expiration time for local caching, in seconds. To disable local caching, set this to zero. If not specified, the default is 15 seconds.

consulOptions?: object

Options to be passed to the Consul client constructor, as defined by the node-consul package. Commonly used options include "host" (hostname), "port", and "secure" (true to use HTTPS). For other options, see node-consul documentation here: https://github.com/silas/node-consul

logger?: LDLogger

A logger to be used for warnings and errors generated by the feature store. If not specified, it will use the SDK's logging configuration.

prefix?: string

An optional namespace prefix for all keys stored in Consul. Use this if you are sharing the same Consul host between multiple clients that are for different LaunchDarkly environments, to avoid key collisions.

Generated using TypeDoc