MemoryCache<K, V> class

Simple class to cache values with size based eviction.

Constructors

MemoryCache({int cacheSize = 10})

Properties

cacheSize → int
final
hashCode → int
The hash code for this object.
no setterinherited
keys → Iterable<K>
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
no setter

Methods

containsKey(K key) → bool
getValue(K key) → V?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setValue(K key, V value) → void
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited