G
- The group.K
- The key.V
- The value.public interface GroupCache<G,K,V>
GroupCache
can cache group, key and value. The group and key are cache key, each key
belongs to a certain group. All corresponding keys and values will be cleared if a group is
cleared.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.
|
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.