Package hudson.plugins.active_directory
Class CacheConfiguration<K,V,E extends Exception>
java.lang.Object
hudson.plugins.active_directory.CacheConfiguration<K,V,E>
Cache configuration
-
Constructor Summary
ConstructorsConstructorDescriptionCacheConfiguration
(int size, int ttl) CacheConfiguration DataBoundConstructor -
Method Summary
Modifier and TypeMethodDescriptioncom.github.benmanes.caffeine.cache.Cache<String,
ActiveDirectoryGroupDetails> Get the cache for groupsint
getSize()
Get size of the cacheint
getTtl()
Get TTL of the cachecom.github.benmanes.caffeine.cache.Cache<CacheKey,
org.springframework.security.core.userdetails.UserDetails> Get the cache for users
-
Constructor Details
-
CacheConfiguration
@DataBoundConstructor public CacheConfiguration(int size, int ttl) CacheConfiguration DataBoundConstructor- Parameters:
size
- of the cache in terms of number of elementsttl
- 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
Get the cache for groups- Returns:
- the cache for groups
-