LruCache<K, V> class
Simple in-memory LRU cache with optional time-to-live.
Properties
Methods
-
clear(
) → void -
contains(
K key) → bool -
evictExpired(
) → int -
get(
K key) → V? -
Return the cached value for
key, or null if missing / expired. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putIfAbsent(
K key, V ifAbsent()) → V -
Insert via
ifAbsentonly whenkeyis absent (or expired). An explicitly cachednullvalue counts as present. -
remove(
K key) → void -
set(
K key, V value) → void -
Insert
valueunderkey. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited