@1hive/connect-core
Version:
Access and interact with Aragon Organizations and their apps.
9 lines • 352 B
TypeScript
declare type CacheStoreCallback<T> = () => Promise<T>;
export declare function createCacheStore<T = string>(limit?: number): {
cachedIndex: (id: string) => number;
clear: () => void;
get: (id: string, callback: CacheStoreCallback<T>) => Promise<T>;
touch: (index: number) => void;
};
export {};
//# sourceMappingURL=cache-store.d.ts.map