| java.lang.Object com.jofti.cache.BaseAdaptor com.jofti.cache.adapter.EhCachePre1_2Adapter
EhCachePre1_2Adapter | public class EhCachePre1_2Adapter extends BaseAdaptor implements CacheAdapter(Code) | | The adapter implementation specific to EHCache.
The adapter takes care of the implementation specific details for converting
between the process the index expects and the behaviour of EHCache (pre-1.2 versions).
The main drawback with ealier versions of EHCache is that it is not possible to find out when an
entry has been expired in the cache so there is a possibility that if you do
not access the cache entries the index will end up with extra keys that are
not present in the cache.
While not a huge problem, over time this could be an issue in an ongoing
situation. It is strongly recommended that you upgrade to version 1.2 and use the Listener or
wrapper adapter.
The start up of the adapter will also try and index any elements already in
the cache.
author: Steve Woodcock author: version: 1.0 version:
|
EhCachePre1_2Adapter | public EhCachePre1_2Adapter()(Code) | | |
EhCachePre1_2Adapter | public EhCachePre1_2Adapter(Object cache)(Code) | | |
remove | public void remove(Object key) throws JoftiException(Code) | | Removes the element which matches the key.
If no element matches, nothing is removed and no Exception is thrown.
Parameters: key - the key of the element to remove throws: CacheException - |
removeAll | public synchronized void removeAll() throws JoftiException(Code) | | Remove all elements in the cache, but leave the cache in a useable state.
throws: CacheException - |
|
|