Class TinyCacheWithGhostCache
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.simulator.admission.tinycache.TinyCacheWithGhostCache
-
public final class TinyCacheWithGhostCache extends Object
This is the TinyCache model that takes advantage of random eviction policy with a ghost cache as admission policy. It offers a very dense memory layout combined with (relative) speed at the expense of limited associativity. s
-
-
Constructor Summary
Constructors Constructor Description TinyCacheWithGhostCache(int nrSets, int itemsPerSet, int randomSeed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddItem(long item)booleancontains(long item)voidrecordItem(long item)
-