@vsokolov/utils - v1.4.2
    Preparing search index...

    Function lruCache

    • Creates an LRU cache with TTL (time-to-live) support.

      Type Parameters

      • T = unknown

      Parameters

      • maxSize: number

        Maximum number of entries before eviction

      • ttl: number

        Time-to-live in milliseconds

      Returns LRUCacheAPI<T>