UNPKG

@pilotlab/lux-tools

Version:

A luxurious user experience framework, developed by your friends at Pilot.

12 lines (11 loc) 420 B
import { IPromise } from '@pilotlab/result'; import ICache from './iCache'; export declare abstract class Cache<T> implements ICache { private _cache; get(key: string, isCache?: boolean): IPromise<T>; preLoad(key: string): IPromise<T>; release(key: string): void; releaseAll(): void; protected p_createNew(key: string, result: IPromise<T>, isCache: boolean): IPromise<T>; } export default Cache;