finds.dev← search

// the find

mjackson/then-redis

★ 312 · JavaScript · updated Aug 2016

A fast, promise-based Redis client for node.js

then-redis is a thin promise-wrapper around node_redis that auto-generates a promise-returning method for every Redis command. It would be for someone on old-style callback Redis who wanted async/await without reimplementing the client, but the README itself says not to use it anymore.

Wraps node_redis instead of reimplementing the protocol, so the underlying connection handling is proven. The variable-length-argument command API plus automatic pipelining and object-friendly MSET/HMSET/HGETALL conveniences make simple scripts noticeably terser than raw node_redis. Decent test coverage — nearly every command has its own test file under modules/__tests__.

The README leads with its own deprecation notice: node_redis added native promise support years ago, which is the entire reason this package existed. Last push is from 2016 — no Node LTS compatibility testing since, no TypeScript types, and it pins to whatever ancient node_redis/redis-commands versions were current then. No cluster support, no reconnection strategy documented, and `client.send()` as the escape hatch suggests the magic command-generation layer doesn't cover every case cleanly.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →