fix(core): update

This commit is contained in:
2021-04-23 18:40:57 +00:00
parent be8227f451
commit e53ebc74f8
15 changed files with 12810 additions and 1177 deletions

View File

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