UNPKG

@linkedmink/multilevel-aging-cache

Version:

Package provides an interface to cache and persist data to Redis, MongoDB, memory

12 lines 707 B
import { IAgingCacheDeleteStrategy } from './IAgingCacheWriteStrategy'; import { IAgingCacheWrite } from './IAgingCache'; import { AgingCacheWriteStrategy } from './AgingCacheWriteStrategy'; /** * Strategy to overwrite only if our value is newer than the high level */ export declare class OverwriteAgedDeleteStrategy<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>>; private deleteConditionally; } //# sourceMappingURL=OverwriteAgedDeleteStrategy.d.ts.map