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