DelegateCache<K, V> class

A cache that delegates to another one.

Inheritance

Constructors

DelegateCache(Cache<K, V> delegate)
const

Properties

defaultToStringPrinter ObjectPrinter
Override to configure the empty ObjectPrinter.
no setterinherited
delegate Cache<K, V>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toStringPrinter ObjectPrinter
Override and call super to add values to the ObjectPrinter.
no setteroverride

Methods

get(K key) Future<V>
Returns the value associated with the key.
override
getIfPresent(K key) Future<V?>
Returns the value associated with the key, otherwise null.
override
invalidate(K key) Future<void>
Discards any cached value with the key.
override
invalidateAll() Future<void>
Discards all cached values.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reap() Future<int>
Returns the number of reaped items.
override
set(K key, FutureOr<V> value) Future<V>
Stores the value associated with the key.
override
size() Future<int>
Number of currently cached values.
override
toString() String
Standard toString implementation. Do not override, instead implement toStringPrinter to customize.
inherited

Operators

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