solive-core
Version:
Solidity Monaco Editor Core Library
11 lines • 330 B
TypeScript
type CacheOptions = {
cacheTime: number;
};
type CacheReturn<T> = {
value: T | undefined;
expired: boolean;
};
declare function cache<T>(key: string, value: T, ops: CacheOptions): void;
declare function getCache<T>(key: string): CacheReturn<T>;
export { cache, getCache };
//# sourceMappingURL=cache.d.ts.map