Redis Cluster Key Slot Calculator

JSON →
library 1.1.2 ·javascript
verified May 27, 2026

The `cluster-key-slot` package provides a high-performance utility for calculating CRC16 hashes, specifically designed for determining key slots in Redis Cluster environments. This functionality is crucial for Node.js Redis clients such as `node_redis`, `ioredis`, and `redis-clustr` to correctly route commands to the appropriate Redis instance. The current stable version is 1.1.2. The package appears to have a stable, low-cadence release schedule, with updates primarily focusing on performance enhancements or supporting new key types like binary keys (introduced in v1.1.0). Its key differentiator lies in its optimized performance compared to older `Buffer`-based CRC calculations, offering significantly faster slot computations for both keys with and without tags, and supporting Redis Cluster key tags (e.g., `somekey{actualTag}`). It ships with TypeScript types, facilitating its use in modern TypeScript projects.

total hits 21
actors 9 distinct systems
last hit 6d ago MetaBot
MetaBot
4
ByteDance
3
GPTBot
2
Script
1
ClaudeBot
1
Search engines
2

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · 🇸🇬 Singapore