Redback is a high-level Redis library for Node.js providing an accessible and extensible interface to Redis data types. Version 0.5.1 is the current stable release, with infrequent updates. It extends the popular node_redis client with built-in structures like List, Set, SortedSet, Hash, Channel, Cache, and advanced structures such as DensitySet, KeyPair, SocialGraph, CappedList, Queue, RateLimit, and BloomFilter. Its key differentiator is the ability to create custom structures easily via redback.addStructure(), enabling developers to define domain-specific data types. Unlike raw node_redis, Redback abstracts Redis commands into intuitive JavaScript objects and methods. It is dependency on node_redis as a peer dependency and supports both callback and event patterns.
npm install redbackNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic cache usage: create a redback client, set and retrieve a cached value.
Use a different database index or avoid running tests on production Redis.
Consider migrating to ioredis for active support and modern features.
Use standalone Redis or test cluster compatibility before deployment.
Ensure NTP sync or implement robust time handling.
Use createSimpleQueue instead or upgrade and rename calls.
Use const redback = require('redback'); or if using ES modules, use import * as redback from 'redback';Start Redis server with redis-server, or specify custom host/port via createClient({host: '...', port: ...}).Use a standalone Redis instance or avoid cluster-dependent structures like BloomFilter and RateLimit.
Ensure redback version >=0.2.0 and import correctly: const redback = require('redback');