Class EvictableCache<K,​V>

    • Method Detail

      • buildWith

        public static <K,​V> EvictableCache<K,​V> buildWith​(com.google.common.cache.CacheBuilder<? super K,​Object> cacheBuilder)
      • getIfPresent

        @CheckForNull
        public V getIfPresent​(Object key)
        Specified by:
        getIfPresent in interface com.google.common.cache.Cache<K,​V>
      • get

        public V get​(K key,
                     Callable<? extends V> loader)
              throws ExecutionException
        Specified by:
        get in interface com.google.common.cache.Cache<K,​V>
        Overrides:
        get in class com.google.common.cache.AbstractCache<K,​V>
        Throws:
        ExecutionException
      • put

        public void put​(K key,
                        V value)
        Specified by:
        put in interface com.google.common.cache.Cache<K,​V>
        Overrides:
        put in class com.google.common.cache.AbstractCache<K,​V>
      • invalidate

        public void invalidate​(Object key)
        Specified by:
        invalidate in interface com.google.common.cache.Cache<K,​V>
        Overrides:
        invalidate in class com.google.common.cache.AbstractCache<K,​V>
      • invalidateAll

        public void invalidateAll​(Iterable<?> keys)
        Specified by:
        invalidateAll in interface com.google.common.cache.Cache<K,​V>
        Overrides:
        invalidateAll in class com.google.common.cache.AbstractCache<K,​V>
      • invalidateAll

        public void invalidateAll()
        Specified by:
        invalidateAll in interface com.google.common.cache.Cache<K,​V>
        Overrides:
        invalidateAll in class com.google.common.cache.AbstractCache<K,​V>
      • size

        public long size()
        Specified by:
        size in interface com.google.common.cache.Cache<K,​V>
        Overrides:
        size in class com.google.common.cache.AbstractCache<K,​V>
      • stats

        public com.google.common.cache.CacheStats stats()
        Specified by:
        stats in interface com.google.common.cache.Cache<K,​V>
        Overrides:
        stats in class com.google.common.cache.AbstractCache<K,​V>
      • asMap

        public ConcurrentMap<K,​V> asMap()
        Specified by:
        asMap in interface com.google.common.cache.Cache<K,​V>
        Overrides:
        asMap in class com.google.common.cache.AbstractCache<K,​V>
      • cleanUp

        public void cleanUp()
        Specified by:
        cleanUp in interface com.google.common.cache.Cache<K,​V>
        Overrides:
        cleanUp in class com.google.common.cache.AbstractCache<K,​V>