CachingStrategy<TIdentifier, TValue> class
Caching strategy to be used by Cache.
Caching Strategies can be opaquely swapped out independently of the consumption pattern of Cache or any other cache implementation.
- Implementers
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDidGet(
TIdentifier id, TValue value) → Future< Null> - Custom logic to be executed after a Cache.get or Cache.getAsync.
-
onDidRelease(
TIdentifier id, TValue value, Future< Null> remove(TIdentifier id)) → Future<Null> - Custom logic to be executed after a Cache.release.
-
onDidRemove(
TIdentifier id, TValue value) → Future< Null> - Custom logic to be executed after a Cache.remove.
-
onWillGet(
TIdentifier id) → void - Custom logic to be executed before a Cache.get or Cache.getAsync.
-
onWillRelease(
TIdentifier id) → void - Custom logic to be executed before a Cache.release.
-
onWillRemove(
TIdentifier id) → void - Custom logic to be executed before a Cache.remove.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited