ScanStream.d.ts 569 B

1234567891011121314151617181920212223
  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. noValues?: boolean;
  11. }
  12. /**
  13. * Convenient class to convert the process of scanning keys to a readable stream.
  14. */
  15. export default class ScanStream extends Readable {
  16. private opt;
  17. private _redisCursor;
  18. private _redisDrained;
  19. constructor(opt: Options);
  20. _read(): void;
  21. close(): void;
  22. }
  23. export {};