@gabliam/cache
Version:
cache plugin for gabliam
15 lines (14 loc) • 506 B
TypeScript
import { Cache } from '../cache';
export declare class NoOpCache implements Cache {
private name;
constructor(name: string);
start(): Promise<void>;
stop(): Promise<void>;
getName(): string;
getNativeCache(): this;
get<T>(key: string): Promise<T | undefined | null>;
put(key: string, value: any): Promise<void>;
putIfAbsent<T>(key: string, value: T | null | undefined): Promise<T | undefined | null>;
evict(key: string): Promise<void>;
clear(): Promise<void>;
}