| net.suberic.util.cache.SizedCache
SizedCache | public interface SizedCache (Code) | | This represents a cache that will cache objects up to a certain amount
of space. After that space is filled, it will start removing items
using a least recently used algorithm.
|
get | public Object get(Object key)(Code) | | Gets an object from the Cache. If the object is not available,
returns null.
|
getMaxEntrySize | public long getMaxEntrySize()(Code) | | Gets the size limit for an individual item in the cache. For obvious
reasons, this should probably not be greater than the max size.
|
getMaxSize | public long getMaxSize()(Code) | | Gets the size limit for the cache.
|
getSize | public long getSize()(Code) | | Gets the current size of the cache.
|
invalidateCache | public void invalidateCache(Object key)(Code) | | Removes an object from the Cache.
|
invalidateCache | public void invalidateCache()(Code) | | Invalidates the entire cache.
|
|
|