@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()
GroupCache
clear
in interface GroupCache<G,K,V>
public V get(G group, K key)
GroupCache
get
in interface GroupCache<G,K,V>
public void put(G group, K key, V value)
GroupCache
put
in interface GroupCache<G,K,V>
public void clearCacheForGroup(G group)
GroupCache
clearCacheForGroup
in interface GroupCache<G,K,V>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.