A thin wrapper over node_redis to handle Redis Clusters, currently at version 0.0.8. This library provides both a cluster client that auto-discovers cluster nodes via a seed link and a 'poor man's' cluster client for manually configured cluster topologies. It implements key-based command routing using CRC16 hashing to determine the correct shard. The package is designed for early Redis Cluster adopters and includes support for PUB/SUB. Key differentiators include minimal overhead, dependency on the widely-used node_redis, and support for custom slot assignments. However, the project appears to be in early development and is not actively maintained.
npm install redis-clusterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Redis cluster client from a seed node, sets and gets a key.
Migrate to a supported Redis client like ioredis or redis (v4+).
Pin the 'redis' dependency to a compatible version (e.g., 2.x or 3.x).
Use only single-key commands. For multi-key operations, ensure all keys hash to the same slot or use hash tags.
When defining node slots, ensure they are contiguous and cover the entire slot range without gaps or overlaps.
Ensure Redis cluster nodes are running and accessible. Use redis-cli to verify connectivity.
Use `new clusterClient.clusterInstance(link, callback)` — clusterClient is an object containing the constructor function.
Check that all 16384 slots are assigned to nodes in the cluster configuration.