public class EhCacheImpl extends Object implements Cache
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
clear(Object key)
Clear a cache entry for a given name.
|
net.sf.ehcache.search.Query |
createQuery()
Create a search query builder for the cache.
|
void |
flush()
Remove all entries from this cache.
|
Object |
get(Object key)
Given a key name, return the corresponding value.
|
<T> net.sf.ehcache.search.Attribute<T> |
getSearchAttribute(String attributeName)
Retrieve the Cache attribute
|
void |
put(Object key,
Object value)
Add a new entry to the cache.
|
public Object get(Object key) throws org.apache.directory.fortress.core.util.cache.CacheException
public void put(Object key, Object value) throws org.apache.directory.fortress.core.util.cache.CacheException
public boolean clear(Object key) throws org.apache.directory.fortress.core.util.cache.CacheException
public void flush() throws org.apache.directory.fortress.core.util.cache.CacheException
public <T> net.sf.ehcache.search.Attribute<T> getSearchAttribute(String attributeName) throws org.apache.directory.fortress.core.util.cache.CacheException
getSearchAttribute
in interface Cache
T
- the type of search attributeattributeName
- the name of search attributeCacheException
- in the event ehcache throws an exception it will be wrapped.public net.sf.ehcache.search.Query createQuery()
createQuery
in interface Cache
public void clear()
Copyright © 2003-2016, The Apache Software Foundation. All Rights Reserved. Generated 20160718-1621