Package io.ipinfo.api.cache
Interface Cache
- All Known Implementing Classes:
NoCache
,SimpleCache
public interface Cache
-
Method Summary
-
Method Details
-
get
Gets an arbitrary object stored in cache.- Parameters:
key
- the key that maps to the object.- Returns:
- the value mapped to from `key`.
-
set
Sets a key/value pair in the cache.- Parameters:
key
- the key.val
- the value.- Returns:
- if caching was successful.
-
clear
boolean clear()Clears all entries in the cache.- Returns:
- if clear was successful.
-