Class StreamElementsCache

java.lang.Object
tv.phantombot.cache.StreamElementsCache

public class StreamElementsCache extends Object
  • Method Details

    • instance

      public static StreamElementsCache instance()
    • exists

      public boolean exists(String donationID)
      Checks if the donation has been cached.
      Parameters:
      donationID -
      Returns:
    • count

      public int count()
      Returns the current cache count (size/length),
      Returns:
    • setCache

      public void setCache(Map<String,JSONObject> cache)
      Sets the current cache.
      Parameters:
      cache -
    • getCache

      public Map<String,JSONObject> getCache()
      Returns the current cache.
      Returns:
      Current cache.
    • kill

      public void kill()
      Kills the current cache.