Class PunishmentReasonCache

java.lang.Object
de.murmelmeister.murmelapi.punishment.reason.PunishmentReasonCache
All Implemented Interfaces:
RefreshListener, AutoCloseable

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

    • ALL_KEY

      private static final String ALL_KEY
      See Also:
    • database

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

      private final String tableName
    • cacheById

      private final com.github.benmanes.caffeine.cache.LoadingCache<Integer,PunishmentReason> cacheById
    • cacheByType

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

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

      private final Long fetchLimit
  • Constructor Details

    • PunishmentReasonCache

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