Promise-based Redis client for Node.js, version 2.0.1. Built on top of node_redis, it provides a promise-based API for all Redis commands, automatic pipelining, and support for transactions and pub/sub. Requires Node >=4 and peer dependencies redis and redis-commands. Differentiates from ioredis by being lighter and directly wrapping node_redis; less active development.
npm install then-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic set and get operations with promise chaining.
Update Redis server to 2.6+ or avoid HGETALL on older Redis versions.
Run 'npm install redis redis-commands' alongside then-redis.
Check for null before accessing properties: const hash = await client.hgetall('key'); if (hash) { ... }Use client.quit() to close connection gracefully.
Install peer dependencies: npm install redis redis-commands
Use named import: import { createClient } from 'then-redis' or const { createClient } = require('then-redis')Await createClient() or use a promise for connection readiness (e.g., client.on('connect', ...)).No dependency data recorded yet.