Save This Page
Home » oscache-2.4.1-full » com.opensymphony.oscache » base » algorithm » [javadoc | source]
com.opensymphony.oscache.base.algorithm
public final class: UnlimitedCache [javadoc | source]
java.lang.Object
   com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache
      com.opensymphony.oscache.base.algorithm.UnlimitedCache
A simple unlimited cache that has no upper bound to the number of cache entries it can contain.
Constructor:
 public UnlimitedCache() 
Method from com.opensymphony.oscache.base.algorithm.UnlimitedCache Summary:
itemPut,   itemRemoved,   itemRetrieved,   removeItem,   setMaxEntries
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.oscache.base.algorithm.UnlimitedCache Detail:
 protected  void itemPut(Object key) 
    Implements itemPut with an empty implementation. The unlimited cache doesn't care that an item was put in the cache.
 protected  void itemRemoved(Object key) 
    An empty implementation. The unlimited cache doesn't care that an item was removed.
 protected  void itemRetrieved(Object key) 
    Implements itemRetrieved with an empty implementation. The unlimited cache doesn't care that an item was retrieved.
 protected Object removeItem() 
    This method just returns null since items should never end up being removed from an unlimited cache!
 public  void setMaxEntries(int maxEntries) 
    Overrides the setMaxEntries with an empty implementation. This property cannot be modified and is ignored for an UnlimitedCache.