UNPKG

@gabliam/cache

Version:
15 lines (14 loc) 506 B
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>; }