Package tv.phantombot.cache
Class StreamElementsCache
java.lang.Object
tv.phantombot.cache.StreamElementsCache
-
Method Summary
Modifier and TypeMethodDescriptionint
count()
Returns the current cache count (size/length),boolean
Checks if the donation has been cached.getCache()
Returns the current cache.static StreamElementsCache
instance()
void
kill()
Kills the current cache.void
setCache
(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.
-