SmartStateCache<K, V> class
A simple LRU (Least Recently Used) cache for state management
Constructors
- SmartStateCache({int maxSize = 100})
Properties
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