Interface Cache
- All Known Implementing Classes:
DefaultHalResourceCache
public interface Cache
-
Method Summary
-
Method Details
-
put
Put a resource into the cache.- Parameters:
id
- the id of the resourceresource
- the resource to cache
-
get
Get a resource by id.- Parameters:
id
- the id of the resource- Returns:
- the resource or null if non is found or the resource time to live expired
-
destroy
void destroy()Destroy cache.
-