File: index.d.ts

package info (click to toggle)
node-redis 4.6.14%2B~1.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,584 kB
  • sloc: javascript: 1,335; makefile: 8; sh: 1
file content (10 lines) | stat: -rw-r--r-- 397 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
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;
}