Class Cache2kPolicy
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.simulator.policy.product.Cache2kPolicy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.benmanes.caffeine.cache.simulator.policy.Policy
Policy.Characteristic, Policy.KeyOnlyPolicy, Policy.PolicySpec
-
-
Constructor Summary
Constructors Constructor Description Cache2kPolicy(Config config, Set<Policy.Characteristic> characteristics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinished()Indicates that the recording has completed.voidrecord(AccessEvent event)Records that the entry was accessed.PolicyStatsstats()Returns the cache efficiency statistics.
-
-
-
Constructor Detail
-
Cache2kPolicy
public Cache2kPolicy(Config config, Set<Policy.Characteristic> characteristics)
-
-
Method Detail
-
record
public void record(AccessEvent event)
Description copied from interface:PolicyRecords that the entry was accessed.
-
stats
public PolicyStats stats()
Description copied from interface:PolicyReturns the cache efficiency statistics.
-
-