import { Request } from "express"; export interface ICache { post( key: string, value: Object, expiresIn?: number | undefined ): Promise; get(key: string): Promise; delete(key: string): void; } export interface IInit { host?: string; port?: string; keyPrefix?: string; password?: string; keys?: Array; } export interface IObj { [key: string]: (req: Request) => Promise; } export interface IRequest extends Request { [key: string]: any; }