Interface DistributedCache<K,​V>

  • Type Parameters:
    K - the key type of the cache
    V - the value type of the cache
    All Superinterfaces:
    com.github.benmanes.caffeine.cache.Cache<K,​V>
    All Known Subinterfaces:
    DistributedLoadingCache<K,​V>

    public interface DistributedCache<K,​V>
    extends com.github.benmanes.caffeine.cache.Cache<K,​V>
    Interface representing a cache instance. Cache entries are manually added and are stored in the cache until either invalidated or evicted.
    Author:
    Andreas Oberhoff
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      DistributedPolicy<K,​V> distributedPolicy()
      Returns an access point for inspecting and performing low-level operations on the cache instance.
      • Methods inherited from interface com.github.benmanes.caffeine.cache.Cache

        asMap, cleanUp, estimatedSize, get, getAll, getAllPresent, getIfPresent, invalidate, invalidateAll, invalidateAll, policy, put, putAll, stats
    • Method Detail

      • distributedPolicy

        DistributedPolicy<K,​V> distributedPolicy()
        Returns an access point for inspecting and performing low-level operations on the cache instance.
        Returns:
        the DistributedPolicy as an access point