Pluggable durable store. Sync or async operations are awaited and isolated from the network result. The cache always keeps its own bounded memory copy.

interface BarCacheStore {
    delete(key: string): MaybePromise<void>;
    get(key: string): MaybePromise<undefined | CachedBars>;
    set(key: string, value: CachedBars): MaybePromise<void>;
}

Methods

Methods