@agentix-e/spel-ts - v1.2.2
    Preparing search index...

    Class LRUCache<K, V>

    Generic LRU cache

    Used for regex caching in OperatorMatches and JavaRegexConverter. Evicts least recently used entry when capacity limit is reached.

    maximum number of cached entries

    Type Parameters

    • K
    • V
    Index
    • Delete specified key

      Parameters

      • key: K

      Returns boolean

    • Get cached value. If present, marks it as recently used.

      Parameters

      • key: K

      Returns V | undefined

    • Set cached value. Evicts least recently used entry if capacity exceeded.

      Parameters

      • key: K
      • value: V

      Returns void