LeastRecentlyUsedStrategy<TIdentifier, TValue> class

A CachingStrategy that will hold the last n most recently used TValues.

When n = 0 the strategy will remove a TIdentifier TValue pair immediately on release.

Inheritance

Constructors

LeastRecentlyUsedStrategy(int _keep)

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.
inherited
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.
override
toString() String
A string representation of this object.
inherited

Operators

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