Service wrapper for node-redis v4+ within the runsv lifecycle management system. Version 3.0.4, released as part of the runsv ecosystem for Node.js >=18. It integrates Redis client lifecycle with runsv's service orchestration, automatically starting/stopping connections. Ships TypeScript types. Differentiator: handles client creation, reconnection, and shutdown via runsv hooks, reducing boilerplate for Redis-dependent services.
npm install runsv-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a Redis service with runsv, start the lifecycle, and perform basic set/get operations.
Update runsv to ^3.0.0 and node-redis to ^4.0.0
Use create from runsv-redis v3; see migration guide
Pass the redis module: import redis from 'redis'; create(redis, options)
Verify service name: runsv.getClients().redis or use the set name
npm install runsv-redis@latest
Use client.hSet('key', { field: 'value' }) instead of client.hmset(['key', 'field', 'value'])import redis from 'redis'; create(redis, options)