zibri
    Preparing search index...

    Write‑invalidate (key from arguments) read‑through cache.

    After the source write succeeds, the cache entry identified by the argument‑derived key is deleted, and optional tag invalidations are fired.

    Type Parameters

    • K
    • V
    • N extends string
    • CacheTag extends string = string

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    _writeResultAvailable: false

    Phantom carrier, only for type inference.

    defaultTtl?: number | (() => number | Promise<number>)

    The default time to live for a cached value.

    name: N

    The name of the cache. Should be unique.

    onInvalidationFailure?: OnInvalidationFailure

    Whether to throw when invalidation fails or to just log and ignore.

    The store used by this cache.

    tags: "all" | readonly CacheTagMatcher[]

    The tags that any values inside of this cache might have.

    This is used for performance improvements, to skip caches for invalidateTags if the given tag will never be inside any of the cached values. Can be set to 'all' to check every time.

    Methods