LruCleanupStrategy class final

Evicts least-recently-used entries first (LRU-based).

Uses CacheEntryMetadata.effectiveTouchedAt as the access timestamp, which falls back to CacheEntryMetadata.validTill for legacy entries that pre-date the touchedAt field.

Inheritance

Constructors

LruCleanupStrategy()
const

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
sortForEviction(List<MapEntry<String, CacheEntryMetadata>> entries) List<MapEntry<String, CacheEntryMetadata>>
Sorts entries so that the entries to evict first appear at the beginning of the returned list.
override
toString() String
A string representation of this object.
inherited

Operators

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