SAP-BTP-Spielwiese/app1/node_modules/cluster-key-slot/index.d.ts
Markus Rettig 775ac7b58c completed step 3 from the tutorial
you must login with an BTP account in order to see the app
2024-02-08 16:13:36 +01:00

10 lines
No EOL
397 B
TypeScript

declare module 'cluster-key-slot' {
// Convert a string or Buffer into a redis slot hash.
function calculate(value: string | Buffer): number;
// Convert an array of multiple strings or Buffers into a redis slot hash.
// Returns -1 if one of the keys is not for the same slot as the others
export function generateMulti(values: Array<string | Buffer>): number;
export = calculate;
}