Class TipeeeStreamCache

java.lang.Object
tv.phantombot.cache.TipeeeStreamCache
All Implemented Interfaces:
Runnable

public class TipeeeStreamCache extends Object implements Runnable
  • Method Details

    • instance

      public static TipeeeStreamCache 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:
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • setCache

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

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

      public void kill()
      Kills the current cache.