Class CacheConfiguration<K,​V,​E extends Exception>


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

      • 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 Detail

      • 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,​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