UNPKG

545 BTypeScriptView Raw
1/// <reference types="node" />
2import { Readable, ReadableOptions } from "stream";
3interface 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 scanning keys to a readable stream.
13 */
14export 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}
22export {};