@NotThreadSafe public class DefaultGroupCache<G,K,V> extends Object implements GroupCache<G,K,V>
GroupCache. Entries will be expired after timeout.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultGroupCache.Factory<G,K,V>
The Factory of
DefaultGroupCache. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
clear all cache.
|
void |
clearCacheForGroup(G group)
Clear all caches of the corresponding group.
|
V |
get(G group,
K key)
Get value in cache.
|
void |
put(G group,
K key,
V value)
Put group, key and value to cache.
|
public void clear()
GroupCacheclear in interface GroupCache<G,K,V>public V get(G group, K key)
GroupCacheget in interface GroupCache<G,K,V>public void put(G group, K key, V value)
GroupCacheput in interface GroupCache<G,K,V>public void clearCacheForGroup(G group)
GroupCacheclearCacheForGroup in interface GroupCache<G,K,V>Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.