async-redis is a lightweight wrapper over the node_redis library, providing first-class async/await and Promise support for Redis operations in Node.js. Version 2.0.0 is the current stable release, targeting Node >=7.6.0. Unlike using promisify manually on node_redis, async-redis offers a drop-in replacement that automatically returns Promises for every command, supports decorating existing clients, and ships TypeScript definitions. It is a minimal, focused alternative to ioredis, suitable for projects already using node_redis that want async support without migrating to a different client.
npm install async-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows async/await usage with async-redis: create client, set and get a key, then clean up.
Use node_redis v2.x as a peer dependency. For v3+, consider using node_redis directly or ioredis.
Use catch on promises instead of relying solely on event listeners.
Use the return value of decorate: const asyncClient = asyncRedis.decorate(client);
Always await commands that return promises, especially blocking ones, to avoid unhandled rejections.
Ensure you use asyncRedis.createClient() or asyncRedis.decorate(client) and use the returned client.
Start Redis server or check connection settings.
Use default import: import asyncRedis from 'async-redis' then asyncRedis.decorate(client).