Class ViewerListCache

java.lang.Object
tv.phantombot.cache.ViewerListCache

@Deprecated(since="3.8.0.0", forRemoval=true) public class ViewerListCache extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Please use ViewerCache instead. In scripts, use $.viewer instead of $.usernameCache
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addUser(String username)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    hasUser(String username)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Method to check if a user is in the cache.
    instance(String channelName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Method to get this instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • instance

      public static ViewerListCache instance(String channelName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Method to get this instance.
      Parameters:
      channelName -
      Returns:
    • hasUser

      public boolean hasUser(String username)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Method to check if a user is in the cache.
      Parameters:
      username -
      Returns:
    • addUser

      public void addUser(String username)
      Deprecated, for removal: This API element is subject to removal in a future version.