Interface Cache<K extends Serializable,​V>


  • public interface Cache<K extends Serializable,​V>
    Interface for general caches
    • Method Detail

      • clear

        void clear()
        Removes all entries in this cache
      • destroy

        void destroy()
        Destroys this cache instance
      • evict

        void evict​(Collection<K> keys)
        Evicts the given keys, if present
      • evict

        void evict​(Predicate<K> predicate)
        Evicts the keys matching the given predicate
      • get

        V get​(K key,
              Callable<V> producer)
        Returns the value currently associated with the given key, or gets one from the given producer if none
      • getType

        CacheType<K,​V> getType()
        Returns this cache type