Package tv.phantombot.cache
Class StreamElementsCache
java.lang.Object
tv.phantombot.cache.StreamElementsCache
-
Method Summary
Modifier and TypeMethodDescriptionintcount()Returns the current cache count (size/length),booleanChecks if the donation has been cached.getCache()Returns the current cache.static StreamElementsCacheinstance()voidkill()Kills the current cache.voidsetCache(Map<String, JSONObject> cache) Sets the current cache.
-
Method Details
-
instance
-
exists
Checks if the donation has been cached.- Parameters:
donationID-- Returns:
-
count
public int count()Returns the current cache count (size/length),- Returns:
-
setCache
Sets the current cache.- Parameters:
cache-
-
getCache
Returns the current cache.- Returns:
- Current cache.
-
kill
public void kill()Kills the current cache.
-