Interface IApiCache
- All Known Implementing Classes:
ApiEhcache, ApiMemcached
public interface IApiCache
Etag (key-value) Cache interface, allows
RestListeners and ApiListeners to save and retrieve etags.- Since:
- 7.0-B2
- Author:
- Niels Meijer
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Removes all items in the cache.booleancontainsKey(String key) Checks whether or not an object has previously been stored in the cachevoiddestroy()Closes the cache.Retrieve an object from the cachevoidPlace an object in the cachevoidPlace an object in the cachebooleanRemove an object from the cache
-
Method Details
-
get
-
put
-
put
-
remove
Remove an object from the cache- Parameters:
key- name of the object to remove- Returns:
- returns true when successfully removed the object
-
containsKey
Checks whether or not an object has previously been stored in the cache- Parameters:
key- name of the object to find- Returns:
- true when found
-
clear
void clear()Removes all items in the cache. -
destroy
void destroy()Closes the cache.
-