Class TinyCache


  • public final class TinyCache
    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.
    • Constructor Detail

      • TinyCache

        public TinyCache​(int nrSets,
                         int itemsPerSet,
                         int randomSeed)
    • Method Detail

      • contains

        public boolean contains​(long item)
      • addItem

        public boolean addItem​(long item)