CacheMissHandler<T extends SerializableModel> class

A CacheMissHandler is used to define a function that is called when a cache miss occurs. The function is expected to return a new object that will be stored in the cache.

Constructors

CacheMissHandler.new(Future<T?> valueProvider(), {Duration? lifetime, String? group})
Creates a new CacheMissHandler.
const

Properties

group String?
The group of the object in the cache.
final
hashCode int
The hash code for this object.
no setterinherited
lifetime Duration?
The maximum lifetime of the object in the cache.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
valueProvider Future<T?> Function()
Function called when a cache miss occurs. If the function returns null, no object will be stored in the cache.
final

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