UNPKG

@xspswap/smart-order-router

Version:
14 lines (13 loc) 340 B
/** * Generic cache used by providers. Allows caching of results to minimize * round trips to external data sources. * * @export * @interface ICache * @template T */ export interface ICache<T> { get(key: string): Promise<T | undefined>; set(key: string, value: T): Promise<boolean>; has(key: string): Promise<boolean>; }