UNPKG

@decaf-ts/db-decorators

Version:

Agnostic database decorators and repository

10 lines (9 loc) 341 B
export declare class DataCache { protected cache: Record<string, any>; get(key: string): Promise<any>; push(key: string, value: any): Promise<void>; put(key: string, value: any): Promise<void>; pop(key: string): Promise<any>; filter(filter: string | RegExp): Promise<any[]>; purge(key?: string): Promise<void>; }