@neutrium/utilities - v5.0.0
    Preparing search index...

    Class WeakCacheRegistry<K, V>

    Lazy values scoped to object identity. Keys are weakly held; no enumeration, size, or deterministic garbage-collection timing is exposed. Factories run synchronously. Thrown failures are not cached; undefined is. Promise values are stored as-is (including rejected promises).

    Type Parameters

    • K extends object
    • V
    Index
    • Read a cached value without invoking the factory; missing keys return undefined.

      Parameters

      • key: K

      Returns V | undefined