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