Class FutureExoCache<K extends Serializable,V,C>

java.lang.Object
org.exoplatform.commons.cache.future.FutureCache<K,V,C>
org.exoplatform.commons.cache.future.FutureExoCache<K,V,C>

public class FutureExoCache<K extends Serializable,V,C> extends FutureCache<K,V,C>
Version:
$Revision$
Author:
Julien Viet
  • Constructor Summary

    Constructors
    Constructor
    Description
    FutureExoCache(Loader<K,V,C> loader, org.exoplatform.services.cache.ExoCache<K,V> cache)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    get(K key)
    Retrieves the cached value corresponding to the specified key from the cache, it must returns null when the key does not exist.
    void
    put(K key, V entry)
    Updates the cache with a new key/value pair.
    void
    putOnly(K key, V value)
    Updates the cache only local mode with a new key/value pair.
    void
    remove(K key)
     

    Methods inherited from class org.exoplatform.commons.cache.future.FutureCache

    get

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FutureExoCache

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

    • clear

      public void clear()
    • remove

      public void remove(K key)
    • get

      public 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

      public 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

      public 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