public class EhCacheImpl extends Object implements CacheImplementation, CacheStatistics
| Modifier | Constructor and Description |
|---|---|
protected |
EhCacheImpl(String name,
net.sf.ehcache.CacheManager ehCacheManager,
EhCacheProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key)
Deprecated.
|
void |
flushAll(boolean propagate) |
void |
flushGroup(String groupName) |
protected void |
flushKeys(Set keysToFlush) |
Object |
get(Object key) |
double |
getCacheEfficiency()
Retrieves the percentage of cache hit that could successfully be served.
|
Set |
getGroupKeys(String groupName) |
long |
getGroupsKeysTotal()
Get the total number of keys in all the groups of this cache.
|
long |
getGroupsSize()
Get the number of groups for this cache.
|
Collection<Object> |
getKeys() |
String |
getName() |
long |
getSuccessHits()
Retrieves the number of cache hits that could successfully be served.
|
long |
getTotalHits()
Retrieves the total number of cache hits.
|
boolean |
isEmpty() |
void |
put(Object key,
String[] groups,
Object value)
Puts an entry in the cache, using optional groups
|
void |
remove(Object key) |
void |
setName(String name) |
int |
size() |
protected EhCacheImpl(String name, net.sf.ehcache.CacheManager ehCacheManager, EhCacheProvider provider)
@Deprecated public boolean containsKey(Object key)
containsKey in interface CacheImplementationpublic Object get(Object key)
get in interface CacheImplementationpublic void put(Object key, String[] groups, Object value)
CacheImplementationput in interface CacheImplementationgroups - the groups this entry should be part of, or null if it's part of no group.public int size()
size in interface CacheImplementationpublic long getGroupsSize()
CacheImplementationgetGroupsSize in interface CacheImplementationpublic long getGroupsKeysTotal()
CacheImplementationgetGroupsKeysTotal in interface CacheImplementationpublic void flushAll(boolean propagate)
flushAll in interface CacheImplementationpublic void remove(Object key)
remove in interface CacheImplementationpublic String getName()
getName in interface CacheImplementationpublic void setName(String name)
setName in interface CacheImplementationpublic void flushGroup(String groupName)
flushGroup in interface CacheImplementationpublic Set getGroupKeys(String groupName)
getGroupKeys in interface CacheImplementationprotected void flushKeys(Set keysToFlush)
public boolean isEmpty()
isEmpty in interface CacheImplementationpublic Collection<Object> getKeys()
getKeys in interface CacheImplementationpublic double getCacheEfficiency()
CacheStatisticsgetCacheEfficiency in interface CacheStatisticspublic long getSuccessHits()
CacheStatisticsgetSuccessHits in interface CacheStatisticspublic long getTotalHits()
CacheStatisticsgetTotalHits in interface CacheStatisticsCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.