kth-node-redis is a Redis client module for Node.js (v4.1.1) that supports multiple named client instances. Released under the KTH organization on npm, it wraps the popular redis package (v5) and provides a simplified async API for creating and managing connections. Key differentiators include the ability to maintain multiple clients differentiated by a name parameter, automatic reuse and reconnection of clients with the same name, and compatibility with both native redis@5 configuration and the unpackRedisConfig from kth-node-configuration. This package is actively maintained with a semver release cadence, writing in TypeScript with built-in type declarations. Compared to using raw redis, it offers a higher-level abstraction for multi-client scenarios typical in microservices architectures.
npm install kth-node-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: create a named client, set and get a key, then destroy the client.
Replace callback-style calls with async/await or promise .then(). For example, change client.get('key', cb) to await client.get('key').Update @kth/api-call to ^4.4.0 or later in your package.json.
Always provide a name argument to getClient to avoid future breakage.
Ensure you always use the latest client from a getClient promise and avoid storing old client references.
Do not reuse a client after destroy(). Obtain a fresh client via getClient().
Use named import: import { getClient } from 'kth-node-redis'Check import statement: should be import { getClient } from 'kth-node-redis'