| org.shiftone.cache.Cache
All known Subclasses: org.shiftone.cache.adaptor.JcsCache, org.shiftone.cache.policy.fifo.RingFifoCache, org.shiftone.cache.decorator.miss.MissHandlingCache, org.shiftone.cache.decorator.tandem.TandemCache, org.shiftone.cache.policy.zero.ZeroCache, org.shiftone.cache.adaptor.OroCache, org.shiftone.cache.adaptor.EHCacheCache, org.shiftone.cache.decorator.soft.SoftCache, org.shiftone.cache.adaptor.SwarmCache, org.shiftone.cache.decorator.sync.SyncCache, org.shiftone.cache.adaptor.MapCache, org.shiftone.cache.decorator.stat.StatCache, org.shiftone.cache.decorator.cluster.ClusterCache,
Cache | public interface Cache (Code) | | Interface Cache
author: Jeff Drost version: $Revision: 1.8 $ |
addObject | void addObject(Object userKey, Object cacheObject)(Code) | | adds an object to the cache
|
clear | void clear()(Code) | | Removes ALL keys and values from the cache.
Use with digression. Using this method too frequently
may defeat the purpose of caching.
|
getObject | Object getObject(Object key)(Code) | | gets the value stored in the cache by it's key,
or null if the key is not found.
|
remove | void remove(Object key)(Code) | | remove a specific key/value pair from the cache
|
size | int size()(Code) | | The number of key/value pares in the cache
|
|
|