Package it.unipd.dei.eis.core.common
Class Cache<K,V>
- java.lang.Object
-
- it.unipd.dei.eis.core.common.Cache<K,V>
-
- Type Parameters:
K- The type of the keyV- The type of the value
- Direct Known Subclasses:
Repository
public abstract class Cache<K,V> extends Object
Cache is the abstract class for caches.
-
-
Constructor Summary
Constructors Constructor Description Cache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VgetCache(K key)Returns the value associated with the key.booleanisCached(K key)Returns true if the cache contains the key.voidputCache(K key, V value)Puts the key-value pair in the cache.
-