
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
@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 22,563 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.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.