Simple Redis client adapter with promises and chainable response transforms. Current stable version 0.2.0 (last updated 2019, no recent releases). Low-maintenance library providing a Redis wrapper with promise-based API, connection management with prefix support, and a unique chainable response modification system (map, filter, sort, paginate, etc.) on Redis command results. Unlike `redis` npm package, it does not support pub/sub or advanced features. Requires Node.js >=8.0.
npm install redis-adapterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to Redis, fetches all members of a set, logs them, and closes connection.
Use 'redis' directly if pub/sub or advanced features needed.
Ensure response is iterable before using chain methods like map, filter, etc.
Always attach .catch() to connect() and all command promises.
Create a .d.ts file or use with JSDoc annotations.
Use: const Redis = require('redis-adapter');Create instance: const client = new Redis({});Ensure Redis returns an array for that command, e.g., SMEMBERS.