A thunk/promise-based Redis client for Node.js, version 2.2.4. It supports all Redis features including cluster, pipelining, transactions, and generators. Designed to be fast and leverage thunks for control flow, it also supports Promises via the `usePromise` option. Competing with ioredis and node_redis, it focuses on thunk/coroutine patterns and lower overhead. Released under the MIT license, with a stable API and regular maintenance.
npm install thunk-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to Redis, sets and gets a key using thunk-based control flow, then quits.
Use `yield [client.multi(), client.set(...), client.exec()]` pattern as shown in the documentation.
Upgrade Node.js to >=4.5.0.
Set `cluster-require-full-coverage no` in redis.conf.
Add `{ usePromise: true }` to createClient options.Install `bluebird` or use native Promise (Node 4+).
Use `const redis = require('thunk-redis');` for CommonJS or `import redis from 'thunk-redis';` for ES modules.Run `npm install thunks` alongside `thunk-redis`.
Add `usePromise: true` to createClient options.
Set `cluster-require-full-coverage no` in redis.conf.