A simple Redis-based key/value store with an API identical to memory-kv-store, designed for Node.js >=24.14.0. Version 6.0.2 is current, ESM-only, and ships TypeScript types. It depends on a simple-redis-service instance for Redis connectivity. The library is lightweight, focused on minimal abstraction, and intended for use in Node.js server environments.
npm install redis-kv-storeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a Redis service and creates a key-value store, sets and retrieves a value, then deletes it.
Migrate to ESM by using 'import' syntax or dynamic import(). For Node.js, enable 'type': 'module' in package.json or use .mjs extension.
Upgrade Node.js to version 24.14.0 or higher.
Always provide a valid log function, e.g., 'console.log.bind(console)' or a custom logger.
Wrap your Redis client with 'simple-redis-service' before passing it to initRedisKV.
Use initRedisKV() factory instead of 'new RedisKVStore()'.
Switch to import syntax or dynamic import(). If you must use require(), downgrade to v5 (not recommended).
Use 'await initRedisKV({...})' or '.then()' to get the actual service instance.Ensure you pass a valid simple-redis-service instance, not a raw Redis client.