Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HashGenCacheMap<K, V>

Type parameters

  • K

  • V

Hierarchy

  • HashGenCacheMap

Index

Constructors

constructor

  • Type parameters

    • K

    • V

    Parameters

    • size: number

    Returns HashGenCacheMap<K, V>

Properties

Readonly buckets

buckets: (undefined | HashGenCacheMapBucket<K, V>)[]

gen1Hits

gen1Hits: number

gen2Hits

gen2Hits: number

gen3Hits

gen3Hits: number

gen4Hits

gen4Hits: number

misses

misses: number

Methods

clear

  • clear(): void
  • Returns void

get

  • get(key: K): undefined | V
  • Parameters

    • key: K

    Returns undefined | V

hitRatio

  • hitRatio(): number
  • Returns number

hits

  • hits(): number
  • Returns number

put

  • put(key: K, value: V): V
  • Parameters

    • key: K
    • value: V

    Returns V

remove

  • remove(key: K): undefined | V
  • Parameters

    • key: K

    Returns undefined | V

Generated using TypeDoc