Package com.reign.api.kat
Class ApiCache<T>
java.lang.Object
com.reign.api.kat.ApiCache<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
lifetime
-
-
Constructor Details
-
ApiCache
-
ApiCache
-
-
Method Details
-
getHitRate
public float getHitRate() -
upsert
-
get
Get a value from the cache.- Parameters:
key
- String key of value.- Returns:
- Stored value or null if TTL expired.
-
remove
-
clear
public void clear()
-