NoCache<K, V> class
final
A no-op Cache that never stores or retrieves values, for opting out of caching in high-cardinality workloads where it costs more than it saves.
- Implemented types
-
- Cache<
K, V>
- Cache<
Constructors
- NoCache()
-
Creates a no-op cache.
const
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, ornullif not present.override -
operator []=(
K key, V value) → void -
Associates
valuewithkeyin the cache.override