@ixily/activ
Version:
Alpha Capture Trade Idea Verification. Blockchain ownership proven trade ideas and strategies.
15 lines (14 loc) • 796 B
TypeScript
export declare const cachePlusUpsert: (preCacheId: string, key: string, data: string, expiration?: number) => Promise<void>;
export declare const cachePlusRemove: (key: string) => Promise<void>;
export declare const cachePlusRetrieve: <T>(preCacheId: string, key: string) => Promise<string | undefined>;
export declare const dynamicCachedFunction: <R, C, A extends any[]>(functionToBeCached: (...args: A[number][any]) => Promise<R | {
result: R;
cache: C;
}>, argsToIndex: any[]) => (...args: A[number][any]) => Promise<R>;
export declare const dynamicCachedFunctionWithCache: <R, C, A extends any[]>(functionToBeCached: (...args: A[number][any]) => Promise<{
result: R;
cache: C;
}>, argsToIndex: any[]) => (...args: A[number][any]) => Promise<{
result: R;
cache: C;
}>;