@linkedmink/multilevel-aging-cache
Version:
Package provides an interface to cache and persist data to Redis, MongoDB, memory
12 lines • 745 B
TypeScript
import { IAgingCacheDeleteStrategy } from './IAgingCacheWriteStrategy';
import { IAgingCacheWrite } from './IAgingCache';
import { AgingCacheWriteStrategy } from './AgingCacheWriteStrategy';
/**
* Strategy to overwrite only if we're forced to
*/
export declare class RefreshAlwaysDeleteStrategy<TKey, TValue> extends AgingCacheWriteStrategy<TKey, TValue> implements IAgingCacheDeleteStrategy<TKey, TValue> {
delete(key: TKey, force: boolean): Promise<IAgingCacheWrite<TValue>>;
evict(key: TKey, evictAtLevel?: number, force?: boolean): Promise<IAgingCacheWrite<TValue>>;
deleteConditionally(key: TKey, evictAtLevel?: number): Promise<IAgingCacheWrite<TValue>>;
}
//# sourceMappingURL=RefreshAlwaysDeleteStrategy.d.ts.map