Class TinyCacheAdapter
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.simulator.admission.tinycache.TinyCacheAdapter
-
-
Constructor Summary
Constructors Constructor Description TinyCacheAdapter(Config config)Note that in this implementation there are always 64 items per set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfrequency(long e)Returns the estimated number of times the element was seen.voidincrement(long e)Increments the popularity of the element.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.benmanes.caffeine.cache.simulator.admission.Frequency
reportMiss
-
-
-
-
Constructor Detail
-
TinyCacheAdapter
public TinyCacheAdapter(Config config)
Note that in this implementation there are always 64 items per set.
-
-
Method Detail
-
frequency
public int frequency(long e)
Description copied from interface:FrequencyReturns the estimated number of times the element was seen.
-
-