Class UserLoginCache

java.lang.Object
de.murmelmeister.murmelapi.user.login.UserLoginCache
All Implemented Interfaces:
RefreshListener, AutoCloseable

public class UserLoginCache 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,UserLogin> cacheById
    • cacheByUserId

      private final com.github.benmanes.caffeine.cache.LoadingCache<Integer,List<UserLogin>> cacheByUserId
    • cacheByIpAddress

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

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

      private final Long fetchLimit
  • Constructor Details

    • UserLoginCache

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