Class GdsfPolicy
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.simulator.policy.greedy_dual.GdsfPolicy
-
- All Implemented Interfaces:
Policy
public final class GdsfPolicy extends Object implements Policy
Greedy Dual Size Frequency (GDSF) algorithm.The algorithm is explained by the authors in Improving Web Servers and Proxies Performance with GDSF Caching Policies and Role of Aging, Frequency, and Size in Web Cache Replacement Policies.
-
-
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 GdsfPolicy(Config config)
-
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
-
GdsfPolicy
public GdsfPolicy(Config config)
-
-
Method Detail
-
stats
public PolicyStats stats()
Description copied from interface:PolicyReturns the cache efficiency statistics.
-
record
public void record(AccessEvent event)
Description copied from interface:PolicyRecords that the entry was accessed.
-
-