Class CacheConfiguration<K,V,E extends Exception>

java.lang.Object
hudson.plugins.active_directory.CacheConfiguration<K,V,E>

public class CacheConfiguration<K,V,E extends Exception> extends Object
Cache configuration
  • Constructor Details

    • CacheConfiguration

      @DataBoundConstructor public CacheConfiguration(int size, int ttl)
      CacheConfiguration DataBoundConstructor
      Parameters:
      size - of the cache in terms of number of elements
      ttl - of the cache in terms of seconds
  • Method Details

    • getSize

      public int getSize()
      Get size of the cache
      Returns:
      the size of the cache
    • getTtl

      public int getTtl()
      Get TTL of the cache
      Returns:
      the ttl of the cache in seconds
    • getUserCache

      public com.github.benmanes.caffeine.cache.Cache<CacheKey,org.springframework.security.core.userdetails.UserDetails> getUserCache()
      Get the cache for users
      Returns:
      the cache for users
    • getGroupCache

      public com.github.benmanes.caffeine.cache.Cache<String,ActiveDirectoryGroupDetails> getGroupCache()
      Get the cache for groups
      Returns:
      the cache for groups