A Redis-backed persistent feature store for the LaunchDarkly Node.js server-side SDK, replacing the default in-memory store. Current version is 2.1.0, released on an as-needed basis. Compatible with the main SDK versions 6 and 7. Enables feature flag data persistence across application restarts and multi-instance deployments. Supports optional in-memory caching with configurable TTL to reduce Redis traffic. Ships TypeScript type definitions. Requires Node.js >= 12 and the `redis` npm package (v3 or v4).
npm install launchdarkly-node-server-sdk-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to initialize the Redis feature store and configure the LaunchDarkly client with it, including Redis connection options and caching.
Replace 'LDRedisFeatureStore' with 'RedisFeatureStore' in imports and usage.
Call RedisFeatureStore() without 'new': const store = RedisFeatureStore();
Use import { RedisFeatureStore } from 'launchdarkly-node-server-sdk-redis';Run: npm install redis
Set cacheTTL to 0 to disable caching, or reduce TTL based on your update frequency.
Remove 'new': const store = RedisFeatureStore(); instead of const store = new RedisFeatureStore();
Install redis: npm install redis
Only RedisFeatureStore is exported. Use: import { RedisFeatureStore } from 'launchdarkly-node-server-sdk-redis';Update launchdarkly-node-server-sdk to >=6.2.0 (or >=7.0.0 for latest)