Class FutureExoCache<K extends Serializable,​V,​C>

    • Constructor Summary

      Constructors 
      Constructor Description
      FutureExoCache​(org.exoplatform.commons.cache.future.Loader<K,​V,​C> loader, org.exoplatform.services.cache.ExoCache<K,​V> cache)  
    • Constructor Detail

      • FutureExoCache

        public FutureExoCache​(org.exoplatform.commons.cache.future.Loader<K,​V,​C> loader,
                              org.exoplatform.services.cache.ExoCache<K,​V> cache)
    • Method Detail

      • clear

        public void clear()
      • remove

        public void remove​(K key)
      • get

        protected V get​(K key)
        Description copied from class: FutureCache
        Retrieves the cached value corresponding to the specified key from the cache, it must returns null when the key does not exist. This method is intended for internal use by the future cache only.
        Specified by:
        get in class FutureCache<K extends Serializable,​V,​C>
        Parameters:
        key - the key
        Returns:
        the cache value
      • put

        protected void put​(K key,
                           V entry)
        Description copied from class: FutureCache
        Updates the cache with a new key/value pair. This method is intended for internal use by the future cache only.
        Specified by:
        put in class FutureCache<K extends Serializable,​V,​C>
        Parameters:
        key - the key
        entry - the cache value
      • putOnly

        protected void putOnly​(K key,
                               V value)
        Description copied from class: FutureCache
        Updates the cache only local mode with a new key/value pair. This method is intended for internal use by the future cache only.
        Specified by:
        putOnly in class FutureCache<K extends Serializable,​V,​C>
        Parameters:
        key - the key
        value - the cache value