import { CacheEntry } from './levelcache.classes.cacheentry'; export abstract class AbstractCache { public abstract ready: Promise; public abstract status: 'active' | 'inactive'; // Blobs /** * store a Blob */ public abstract storeCacheEntryByKey(keyArg: string, valueArg: CacheEntry): Promise; // Cache Entries /** * retrieve cache entry */ public abstract retrieveCacheEntryByKey(keyArg: string): Promise; public abstract checkKeyPresence(keyArg: string): Promise; /** * cleans the cache */ public abstract clean(): Promise; }