UNPKG

node-resque

Version:

an opinionated implementation of resque in node

16 lines (15 loc) 567 B
import { EventEmitter } from "events"; import { Redis, Cluster } from "ioredis"; import { ConnectionOptions } from ".."; export declare class Connection extends EventEmitter { options: ConnectionOptions; private eventListeners; connected: boolean; redis: Redis | Cluster; constructor(options?: ConnectionOptions); connect(): Promise<void>; loadLua(): void; getKeys(match: string, count?: number, keysAry?: string[], cursor?: number): Promise<string[]>; end(): void; key(arg: any, arg2?: any, arg3?: any, arg4?: any): string; }