@push.rocks/levelcache
Version:
A versatile caching solution offering multi-level storage utilizing memory, disk, and Amazon S3 for efficient data management and backup.
18 lines (17 loc) • 738 B
TypeScript
import * as plugins from './levelcache.plugins.js';
import { LevelCache } from './levelcache.classes.levelcache.js';
import { AbstractCache } from './levelcache.abstract.classes.cache.js';
import { CacheEntry } from './levelcache.classes.cacheentry.js';
export declare class CacheRouter {
levelCacheRef: LevelCache;
cacheKeyMap: plugins.lik.FastMap<AbstractCache>;
constructor(levelCacheRef: LevelCache);
/**
* gets the relevant cache to perform a store action on
*/
getCacheForStoreAction(keyArg: string, cacheEntry: CacheEntry): Promise<AbstractCache>;
/**
* gets the relevant cache to perform a retrieval action on
*/
getCacheForRetrieveAction(keyArg: string): Promise<AbstractCache>;
}