{"library":"cluster-key-slot","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.1.2","tags":["javascript","redis","hash","crc","slot","calc","node","node_redis","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install cluster-key-slot","imports":["import calculateSlot from 'cluster-key-slot';\n// Or for CJS:\nconst calculateSlot = require('cluster-key-slot');","import { generateMulti } from 'cluster-key-slot';\n// Or for CJS:\nconst { generateMulti } = require('cluster-key-slot');","import type { ClusterKeySlotCalculator } from 'cluster-key-slot';"]},{"cmd":"yarn add cluster-key-slot","imports":[]},{"cmd":"pnpm add cluster-key-slot","imports":[]}],"homepage":null,"github":"https://github.com/Salakar/cluster-key-slot","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/cluster-key-slot","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/cluster-key-slot/compatibility"}}