CacheReplacement class

Factory for the replacement policy used independently in each cache set.

Annotations

Constructors

CacheReplacement({required String identity, required CacheReplacementBuilder build, CacheReplacementDeferredBuilder? buildWithCommits})
Creates a replacement-policy factory.
const
CacheReplacement.behavioral(ReplacementPolicyModelKind kind)
Former name of CacheReplacement.model.
factory
CacheReplacement.model(ReplacementPolicyModelKind kind)
Simulation-only policy using the standard replacement port protocol.
factory

Properties

build → CacheReplacementBuilder
Builds one policy instance on the supplied ports.
final
buildWithCommits → CacheReplacementDeferredBuilder?
Optional builder supporting deferred commits by reserved way.
final
hashCode → int
The hash code for this object.
no setterinherited
identity → String
Stable, unique identity used in generated module names.
final
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
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

roundRobin → const CacheReplacement
Rotates through the ways after allocations.
treePseudoLru → const CacheReplacement
Approximates least-recent use with a binary tree.