ScanStream.d.ts 544 B

12345678910111213141516171819202122
  1. /// <reference types="node" />
  2. import { Readable, ReadableOptions } from "stream";
  3. interface Options extends ReadableOptions {
  4. key?: string;
  5. match?: string;
  6. type?: string;
  7. command: string;
  8. redis: any;
  9. count?: string | number;
  10. }
  11. /**
  12. * Convenient class to convert the process of scaning keys to a readable stream.
  13. */
  14. export default class ScanStream extends Readable {
  15. private opt;
  16. private _redisCursor;
  17. private _redisDrained;
  18. constructor(opt: Options);
  19. _read(): void;
  20. close(): void;
  21. }
  22. export {};