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

Constructors

NoCache()
Creates a no-op cache.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
length → int
Returns the current number of items in the cache.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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, or null if not present.
override
operator []=(K key, V value) → void
Associates value with key in the cache.
override