hoodkit
    Preparing search index...

    Class MemoryLruStore

    In-memory LRU CacheStore with per-entry TTL. Bounded by maxEntries; the least-recently-used entry is evicted on overflow. Expired entries are dropped lazily on read.

    Implements

    Index
    • get size(): number

      Current entry count (including not-yet-evicted expired entries).

      Returns number

    • Type Parameters

      • T

      Parameters

      • key: string
      • value: T
      • ttlMs: number

      Returns void