annotations-design-patterns
    Preparing search index...

    Interface AsyncCachedForOptions<Args, Result>

    interface AsyncCachedForOptions<Args extends readonly unknown[], Result> {
        store: AsyncCacheProvider;
        namespace: string;
        schemaVersion: string;
        key: (...args: Args) => string;
        codec: AsyncCacheCodec<Result>;
        storeFailure: "bypass" | "reject";
        ioTimeoutMs: number;
        onDiagnostic?: (
            diagnostic: AsyncCacheDiagnostic,
        ) => void | PromiseLike<void>;
    }

    Type Parameters

    • Args extends readonly unknown[]
    • Result
    Index
    namespace: string
    schemaVersion: string
    key: (...args: Args) => string
    storeFailure: "bypass" | "reject"
    ioTimeoutMs: number
    onDiagnostic?: (diagnostic: AsyncCacheDiagnostic) => void | PromiseLike<void>