![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 Server-Side SDK for Node.js
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 ioredis.
The minimum version of the LaunchDarkly Server-Side SDK for Node for use with this library is 8.0.0.
LaunchDarkly is a feature management platform that serves over 100 billion feature flags daily to help teams build better software, faster. Get started using LaunchDarkly today!
This package is compatible with Node.js versions 14 and above.
Refer to Using Redis as a persistent feature store.
This assumes that you have already installed the LaunchDarkly Node.js SDK.
npm
or yarn
:npm install @launchdarkly/node-server-sdk-redis --save
ioredis
package, add ioredis
as well:npm install ioredis --save
import { RedisFeatureStore } = from '@launchdarkly/node-server-sdk-redis';
const storeFactory = RedisFeatureStore();
const config = { featureStore: storeFactory };
const 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 RedisFeatureStoreFactory
.
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:
const factory = RedisFeatureStoreFactory({ cacheTTL: 0 });
We encourage pull requests and other contributions from the community. Check out our contributing guidelines for instructions on how to contribute to this SDK.
LaunchDarkly uses the SLSA framework (Supply-chain Levels for Software Artifacts) to help developers make their supply chain more secure by ensuring the authenticity and build integrity of our published SDK packages. To learn more, see the provenance guide.
FAQs
Redis-backed feature store for the LaunchDarkly Server-Side SDK for Node.js
The npm package @launchdarkly/node-server-sdk-redis receives a total of 9,073 weekly downloads. As such, @launchdarkly/node-server-sdk-redis popularity was classified as popular.
We found that @launchdarkly/node-server-sdk-redis demonstrated a healthy version release cadence and project activity because the last version was released less than 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.