Interface Cache
- All Known Implementing Classes:
SoftReferenceCache
public interface Cache
-
Method Summary
-
Method Details
-
put
- Parameters:
key- value to be used as keyvalue- value to be storedsizeEstimate- estimated size- Returns:
- the old object, that was replaced if present. Otherwise
null.
-
get
-
clear
void clear()Removes all mappings from a map (optional operation).- Throws:
UnsupportedOperationException- ifclear()is not supported by the map.
-
remove
- Parameters:
key- the key of the to be removed object- Returns:
- the removed object, if present. Otherwise
null.
-