/// import * as redis from 'redis'; import * as bluebird from 'bluebird'; declare module 'redis' { interface RedisClient extends NodeJS.EventEmitter { getAsync(...args: any[]): bluebird; scanAsync(...args: any[]): bluebird; delAsync(...args: any[]): bluebird; hmsetAsync(...args: any[]): bluebird; } } export declare class RedisClient { client: redis.RedisClient; constructor(url: string); getAsync(key: string): bluebird; set(key: string, value: string): boolean; setWithExpiration(key: string, value: string, timeoutInSeconds: number): boolean; setObjectWithExpiration(key: string, object: any, timeoutInSeconds: number): boolean; getObject(key: string): bluebird; scan(cursor: string, pattern: string, count?: number): bluebird; del(key: string): bluebird; delByPattern(pattern: string, cursor?: string): Promise; hmSet(key: string, object: any): bluebird; hmSetWithExpiration(key: string, object: any, timeoutInSeconds: number): bluebird; hgetAll(key: string): bluebird; remove(key: string): boolean; rpush(key: string, value: string): boolean; blpop(key: string, value: number, func: redis.Callback<[string, string]>): boolean; llen(key: string): bluebird; publish(channel: string, message: string): boolean; } export default RedisClient;