ReferenceCountingStrategy<TIdentifier, TValue> class
Maintains the number of references to an instance of a cache value.
- Inheritance
-
- Object
- CachingStrategy<
TIdentifier, TValue> - ReferenceCountingStrategy
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.
inherited
-
onDidRelease(
TIdentifier id, TValue value, Future< Null> remove(TIdentifier id)) → Future<Null> -
Custom logic to be executed after a Cache.release.
override
-
onDidRemove(
TIdentifier id, TValue value) → Future< Null> -
Custom logic to be executed after a Cache.remove.
override
-
onWillGet(
TIdentifier id) → void -
Custom logic to be executed before a Cache.get or Cache.getAsync.
override
-
onWillRelease(
TIdentifier id) → void -
Custom logic to be executed before a Cache.release.
override
-
onWillRemove(
TIdentifier id) → void -
Custom logic to be executed before a Cache.remove.
inherited
-
referenceCount(
TIdentifier id) → int? -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited