![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
launchdarkly-node-server-sdk-redis
Advanced tools
Redis-backed feature store for the LaunchDarkly Node.js SDK
This library provides a Redis-backed persistence mechanism (feature store) for the LaunchDarkly Node.js SDK, replacing the default in-memory feature store. The underlying Redis client implementation is Node Redis.
The minimum version of the LaunchDarkly Server-Side SDK for Node for use with this library is 6.0.0. In earlier versions of the SDK, the Redis integration was bundled in the main SDK package.
For more information, see the SDK features guide.
TypeScript API documentation is here.
This assumes that you have already installed the LaunchDarkly Node.js SDK.
Install this package with npm
:
npm install launchdarkly-node-server-sdk-redis --save
If your application does not already have its own dependency on the redis
package, add redis
as well:
npm install redis --save
Require the package:
var RedisFeatureStore = require('launchdarkly-node-server-sdk-redis');
When configuring your SDK client, add the Redis feature store:
var store = RedisFeatureStore();
var config = { featureStore: store };
var client = LaunchDarkly.init('YOUR SDK KEY', config);
By default, the store will try to connect to a local Redis instance on port 6379. You may specify an alternate configuration as described in the API documentation for RedisFeatureStore
.
To reduce traffic to Redis, there is an optional in-memory cache that retains the last known data for a configurable amount of time. This is on by default; to turn it off (and guarantee that the latest feature flag data will always be retrieved from Redis for every flag evaluation), configure the store as follows:
var store = RedisFeatureStore({ cacheTTL: 0 });
FAQs
Redis-backed feature store for the LaunchDarkly Node.js SDK
The npm package launchdarkly-node-server-sdk-redis receives a total of 1,943 weekly downloads. As such, launchdarkly-node-server-sdk-redis popularity was classified as popular.
We found that launchdarkly-node-server-sdk-redis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.