Class CacheBuilder


  • public final class CacheBuilder
    extends Object
    A builder of Cache.
    • Method Detail

      • setMaximumSize

        public CacheBuilder setMaximumSize​(long maximumSize)
        Sets the maximum size of the cache.
      • setWeakValues

        public CacheBuilder setWeakValues()
        Sets that values should be referenced weakly.