Package org.apache.flink.runtime.util
Interface GroupCache<G,K,V>
- Type Parameters:
G- The group.K- The key.V- The value.
- All Known Implementing Classes:
DefaultGroupCache
public interface GroupCache<G,K,V>
This
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.-
Method Summary
-
Method Details
-
clear
void clear()clear all cache. -
get
Get value in cache.- Returns:
- value in cache if exists, otherwise null
-
put
Put group, key and value to cache. -
clearCacheForGroup
Clear all caches of the corresponding group.
-