Interface Cache<K,V>
- Type Parameters:
K- Type of key.V- Type of values.
public interface Cache<K,V>
Cache of values identified by a key.
It is important to note that:
- Keys should be immutable
- Null values should not be allowed
-
Method Summary
-
Method Details
-
load
-
clear
void clear()Clear cache. -
size
long size()Get the size of the cache.- Returns:
- Cache size.
-