@smartip/js
Version:
SmartIP.io Official Javascript Library (Typescript)
21 lines • 710 B
TypeScript
export interface IInternalCache {
get(key: string): string | undefined;
put(key: string, data: string): void;
flush(key: string): void;
flushAll(): void;
}
export declare class InternalCache implements IInternalCache {
private readonly cache;
constructor(maximumSize?: number, expireSec?: number);
get(key: string): string | undefined;
flush(key: string): void;
flushAll(): void;
put(key: string, data: string): void;
}
export declare class NoCache implements IInternalCache {
get(key: string): string | undefined;
flush(key: string): void;
flushAll(): void;
put(key: string, data: string): void;
}
//# sourceMappingURL=cache.d.ts.map