CachePolicy class abstract

Cache policy abstraction for determining cache validity.

Implement this interface to define custom cache expiration strategies.

Implementers

Constructors

CachePolicy()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → Future<void>
Clear all cached data.
invalidate(String key) → Future<void>
Invalidate cached data for key.
isValid(String key) → Future<bool>
Check if cached data for key is still valid.
markFresh(String key) → Future<void>
Mark cached data for key as fresh.
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