The official LoopBack connector for Redis KeyValue operations. Version 4.0.0 runs on Node >=10 and has no recent releases (last update was Nov 2019). It is designed specifically for LoopBack 3 and not compatible with LoopBack 4. This connector supports key-value store patterns like TTL, expiration, and atomic operations. It differs from a generic Redis client by integrating with LoopBack's datasource and model infrastructure, enabling declarative configuration and ORM-like usage. However, it is effectively in maintenance mode as LoopBack 3 is EOL and no LoopBack 4 equivalent was published.
npm install loopback-connector-kv-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a LoopBack datasource using the kv-redis connector, defines a key-value model, and demonstrates basic operations: set, get, expire, ttl, delete.
Migrate to LoopBack 4 and use a different Redis client (e.g., ioredis) directly or via loopback-connector-redis (not kv).
Always use 'kv-redis' as the first argument when creating a DataSource.
Add `{ kv: true }` as the third argument to ds.define().Use a standalone Redis server or test with your topology.
Do not start new projects with LoopBack 3. Migrate to LoopBack 4 or other frameworks.
Install the package: npm install loopback-connector-kv-redis. Then use connector name 'kv-redis'.
Add `{ kv: true }` as the third argument to ds.define() when defining the model.Start Redis server or provide a valid REDIS_URL environment variable.
Ensure model definition includes `{ kv: true }` and the datasource has connected before calling .set().