SmartStateCache<K, V> class

A simple LRU (Least Recently Used) cache for state management

Constructors

SmartStateCache({int maxSize = 100})

Properties

hashCode → int
The hash code for this object.
no setterinherited
maxSize → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
Get cache size
no setter

Methods

clear() → void
Clear all cache
containsKey(K key) → bool
Check if key exists
get(K key) → V?
Get a value from cache
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(K key, V value) → void
Put a value into cache
remove(K key) → void
Remove a specific key
toString() → String
A string representation of this object.
inherited

Operators

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