export interface ExpirationOptions { EX?: number; PX?: number; NX?: boolean; XX?: boolean; KEEPTTL?: boolean; GET?: boolean; } export interface DataClient { get(key: string): Promise; set(key: string, value: string | Buffer | null, options?: ExpirationOptions): Promise; del(key: string): Promise; quit(callback?: (err: Error | null, res: string) => void): Promise; }