public interface Cache
Modifier and Type | Method and Description |
---|---|
boolean |
clear(Object key)
Clear a cache entry for a given name.
|
net.sf.ehcache.search.Query |
createQuery()
Create a search query for the cache.
|
void |
flush()
Remove all entries from the 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.
|
Object get(Object key) throws org.apache.directory.fortress.core.util.cache.CacheException
key
- is the name used to store the entry.CacheException
- will wraps the implementation's exception.void put(Object key, Object value) throws org.apache.directory.fortress.core.util.cache.CacheException
key
- name to be used for the entry.value
- object that is stored.CacheException
- will wraps the implementation's exception.boolean clear(Object key) throws org.apache.directory.fortress.core.util.cache.CacheException
key
- name that entry is stored as.CacheException
- will wraps the implementation's exception.void flush() throws org.apache.directory.fortress.core.util.cache.CacheException
CacheException
- will wraps the implementation's exception.<T> net.sf.ehcache.search.Attribute<T> getSearchAttribute(String attributeName) throws org.apache.directory.fortress.core.util.cache.CacheException
T
- the type of search attributeattributeName
- the name of search attributeCacheException
- will wraps the implementation's exception.net.sf.ehcache.search.Query createQuery()
Copyright © 2003-2016, The Apache Software Foundation. All Rights Reserved. Generated 20160718-1621