Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LFUEvictionPolicy<Key, Value, ArgumentsBundle>

Least Frequently Used eviction policy.

Type parameters

  • Key

    Type of the key.

  • Value

    Type of the value.

  • ArgumentsBundle

    Type of the arguments bundle.

Hierarchy

  • BaseLFUEvictionPolicy<Key, Value, ArgumentsBundle>
    • LFUEvictionPolicy

Constructors

constructor

  • Type parameters

    • Key

    • Value

    • ArgumentsBundle

    Parameters

    Returns LFUEvictionPolicy<Key, Value, ArgumentsBundle>

Accessors

size

  • get size(): number
  • Returns number

    Total number of elements from frequency list.

Methods

onClear

  • onClear(): void
  • inheritdoc

    Returns void

onDelete

  • onDelete(entry: EvictableCacheEntry<Key, Value>): void
  • inheritdoc

    Parameters

    • entry: EvictableCacheEntry<Key, Value>

    Returns void

onHit

  • inheritdoc

    Parameters

    • entry: EvictableCacheEntry<Key, Value>

    Returns EntryValidity

onMiss

  • onMiss(): void
  • inheritdoc

    Returns void

onSet

  • onSet(entry: EvictableCacheEntry<Key, Value>): void
  • inheritdoc

    Parameters

    • entry: EvictableCacheEntry<Key, Value>

    Returns void

onUpdate

  • onUpdate(_entry: EvictableCacheEntry<Key, Value>): void
  • inheritdoc

    Parameters

    • _entry: EvictableCacheEntry<Key, Value>

    Returns void

setDeleter

  • setDeleter(deleter: Deleter<Key, Value>): void
  • inheritdoc

    Parameters

    Returns void