Class GroupColorCache

java.lang.Object
de.murmelmeister.murmelapi.group.color.GroupColorCache
All Implemented Interfaces:
RefreshListener, AutoCloseable

public class GroupColorCache extends Object implements RefreshListener, AutoCloseable
  • Field Details

    • ALL_KEY

      private static final String ALL_KEY
      See Also:
    • KEY_PATTERN

      private static final Pattern KEY_PATTERN
    • database

      private final de.murmelmeister.library.database.Database database
    • tableName

      private final String tableName
    • cacheByKey

      private final com.github.benmanes.caffeine.cache.LoadingCache<GroupColorCache.ColorKey,GroupColor> cacheByKey
    • cacheByGroupId

      private final com.github.benmanes.caffeine.cache.LoadingCache<Integer,List<GroupColor>> cacheByGroupId
    • listCache

      private final com.github.benmanes.caffeine.cache.LoadingCache<String,List<GroupColor>> listCache
    • fetchLimit

      private final Long fetchLimit
  • Constructor Details

    • GroupColorCache

      public GroupColorCache(de.murmelmeister.library.database.Database database, String tableName, Long fetchLimit, long cacheCapcity, Duration refreshInterval)
  • Method Details