export interface IQuery { [key: string]: any; } export interface ICache { set: (key: string, data: T) => Promise; get: (key: string) => Promise; remove: (key: string) => Promise; findOne: (query?: IQuery) => Promise; findMany: (query?: IQuery) => Promise; }