Class PunishmentLogCache

java.lang.Object
de.murmelmeister.murmelapi.punishment.audit.PunishmentLogCache
All Implemented Interfaces:
RefreshListener, AutoCloseable

public class PunishmentLogCache 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<UUID,PunishmentLog> cacheById
    • cacheByUser

      private final com.github.benmanes.caffeine.cache.LoadingCache<Integer,List<PunishmentLog>> cacheByUser
    • cacheByIp

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

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

      private final Long fetchLimit
  • Constructor Details

    • PunishmentLogCache

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