Class CoherenceCache

  • All Implemented Interfaces:
    Cache

    public class CoherenceCache
    extends Object
    implements Cache
    Coherence-specific implementation of Cache that defines common cache operations.
    Since:
    3.0
    Author:
    Gunnar Hillert
    • Constructor Detail

      • CoherenceCache

        public CoherenceCache​(com.tangosol.net.NamedCache<Object,​Object> cache)
    • Method Detail

      • clear

        public void clear()
        Specified by:
        clear in interface Cache
      • evict

        public void evict​(Object key)
        Specified by:
        evict in interface Cache
      • get

        public <T> T get​(Object key,
                         Class<T> type)
        Specified by:
        get in interface Cache
      • size

        public int size()
        Returns the number of key-value mappings of the underlying NamedCache.
        Returns:
        the number of key-value mappings in this map