Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LFUDAEvictionPolicy<Key, Value, ArgumentsBundle>

Type parameters

  • Key

    Type of the key.

  • Value

    Type of the value.

  • ArgumentsBundle

    Type of the arguments bundle.

Hierarchy

  • BaseLFUEvictionPolicy<Key, Value, ArgumentsBundle>
    • LFUDAEvictionPolicy

Constructors

constructor

  • Type parameters

    • Key

    • Value

    • ArgumentsBundle

    Parameters

    Returns LFUDAEvictionPolicy<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