Constructor and Description |
---|
CacheConfiguration(int size,
int ttl)
CacheConfiguration DataBoundConstructor
|
Modifier and Type | Method and Description |
---|---|
com.github.benmanes.caffeine.cache.Cache<String,ActiveDirectoryGroupDetails> |
getGroupCache()
Get the cache for groups
|
int |
getSize()
Get size of the cache
|
int |
getTtl()
Get TTL of the cache
|
com.github.benmanes.caffeine.cache.Cache<CacheKey,UserDetails> |
getUserCache()
Get the cache for users
|
@DataBoundConstructor public CacheConfiguration(int size, int ttl)
size
- of the cache in terms of number of elementsttl
- of the cache in terms of secondspublic int getSize()
public int getTtl()
public com.github.benmanes.caffeine.cache.Cache<CacheKey,UserDetails> getUserCache()
public com.github.benmanes.caffeine.cache.Cache<String,ActiveDirectoryGroupDetails> getGroupCache()
Copyright © 2016–2021. All rights reserved.