LruCache<K, V> class
final
A simple Least Recently Used (LRU) cache implementation.
Keeps a fixed number of items (_maxSize). When the cache is full and a new
item is added, the least recently used item is evicted. Accessing an item
(get or update) marks it as the most recently used.
- Implemented types
-
- Cache<
K, V>
- Cache<
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
K key) → V? -
Retrieves the value associated with
key.override -
operator []=(
K key, V value) → void -
Associates
valuewithkeyin the cache.override