Class PageCache<ATTR extends Any>


public class PageCache<ATTR extends Any> extends IntrusiveSoftLRU<PageCache.IntrusivePage<ATTR>>
A cache for IntrusivePages. This data structure stores pages as soft references and maintains them as an LRU cache. External references to cached pages should be held via weak references so that as memory pressure builds the pages can be evicted from the cache.
  • Constructor Details

    • PageCache

      public PageCache(int initialCapacity, int maxCapacity)
  • Method Details