public class DummyCacheImpl<K,V> extends Object implements CacheImplementation<K,V>
CacheImplementation that disables caching.| Constructor and Description |
|---|
DummyCacheImpl(String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key) |
void |
flushAll(boolean propagate) |
void |
flushGroup(String groupName) |
V |
get(Object key) |
Set<GroupCacheKey> |
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<K> |
getKeys() |
String |
getName() |
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() |
public DummyCacheImpl(String name)
public boolean containsKey(Object key)
containsKey in interface CacheImplementation<K,V>public void put(Object key, String[] groups, Object value)
CacheImplementationput in interface CacheImplementation<K,V>groups - the groups this entry should be part of, or null if it's part of no group.public boolean isEmpty()
isEmpty in interface CacheImplementation<K,V>public int size()
size in interface CacheImplementation<K,V>public Collection<K> getKeys()
getKeys in interface CacheImplementation<K,V>public long getGroupsSize()
CacheImplementationgetGroupsSize in interface CacheImplementation<K,V>public long getGroupsKeysTotal()
CacheImplementationgetGroupsKeysTotal in interface CacheImplementation<K,V>public void flushAll(boolean propagate)
flushAll in interface CacheImplementation<K,V>public void flushGroup(String groupName)
flushGroup in interface CacheImplementation<K,V>public void remove(Object key)
remove in interface CacheImplementation<K,V>public String getName()
getName in interface CacheImplementation<K,V>public void setName(String name)
setName in interface CacheImplementation<K,V>public Set<GroupCacheKey> getGroupKeys(String groupName)
getGroupKeys in interface CacheImplementation<K,V>Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.