| com.protomatter.util.Cache
All known Subclasses: com.protomatter.util.SoftReferenceCache,
Cache | public interface Cache (Code) | | A generic interface for caches.
|
Method Summary | |
public void | clear(Object key) Clear the value at the given location in the cache. | public void | clear() Clear the entire cache. | public Object | get(Object key) Get the value at a given location in the cache. | public void | put(Object key, Object val) Put a value into the given location in the cache. |
clear | public void clear(Object key)(Code) | | Clear the value at the given location in the cache.
|
clear | public void clear()(Code) | | Clear the entire cache.
|
get | public Object get(Object key)(Code) | | Get the value at a given location in the cache. If the
value has expired or does not exist, this method
will return null.
|
put | public void put(Object key, Object val)(Code) | | Put a value into the given location in the cache.
|
|
|