zibri
    Preparing search index...

    Class ReadAsideCache<K, V, CacheTag, WriteResultAvailable, N>Abstract

    Read‑aside base class.

    On a cache miss the source is called, but the result is never written back to the cache. Cache population happens only via explicit write strategies (wrapWrite) or out‑of‑band processes.

    wrapDelete and wrapInvalidate work exactly like their read‑through counterparts.

    Type Parameters

    • K
    • V
    • CacheTag extends string
    • WriteResultAvailable extends boolean
    • N extends string

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _writeResultAvailable: WriteResultAvailable

    Phantom carrier, only for type inference.

    defaultTtl?: number | (() => number | Promise<number>)
    name: N
    onInvalidationFailure?: OnInvalidationFailure
    tags: "all" | readonly CacheTagMatcher[]

    Methods