Class CaffeinePolicy
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.simulator.policy.product.CaffeinePolicy
-
-
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 CaffeinePolicy(Config config, Set<Policy.Characteristic> characteristics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrecord(AccessEvent event)Records that the entry was accessed.PolicyStatsstats()Returns the cache efficiency statistics.
-
-
-
Constructor Detail
-
CaffeinePolicy
public CaffeinePolicy(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.
-
-