@croct/cache
Version:
An abstraction layer for caching.
12 lines (11 loc) • 378 B
TypeScript
import { CacheProvider } from './cacheProvider';
/**
* A no-op implementation of cache provider.
*
* Getting a value from the cache will always return the result of the loader function.
*/
export declare class NoopCache implements CacheProvider<any, any> {
get(key: any, loader: (key: any) => any): Promise<any>;
set(): Promise<void>;
delete(): Promise<void>;
}