Package com.skava.auth.helper
Class CacheImpl
java.lang.Object
com.skava.auth.helper.CacheImpl
- Direct Known Subclasses:
GetAllCollectionServiceImpl
This class used to handle the caching operation of the entities for quick response without accessing data
repositories.
- Author:
- Infosys Equinox
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The Constant AUTH_GRAND_CACHE_NAME.static final String
The Constant COLLECTION_CACHE_NAME.static final String
The Constant GUEST_SESSION_CACHE_NAME.static final String
The Constant OAUTH_CLIENT_CACHE_NAME.static final String
The Constant OAUTH_CLIENT_PUBLIC_KEY_CACHE_NAME.static final String
The Constant SESSION_CACHE_NAME.static final String
The Constant TOKEN_EXPIRE_TIME_CACHE_NAME. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearCache
(Set<String> cacheNames) deleteCache
(String cacheName) deleteCache.deleteCacheWithKey
(String cacheName, String cacheKey) deleteCacheWithKey.org.springframework.cache.Cache
getCache.<T> T
getValueFromCache
(String cacheName, String key, Class<T> type) <T> void
putValueWithExpireTime
(String cacheName, String key, T value, long timeout, TimeUnit unit) <T> Object
saveDetailsToCache
(String cacheName, String cacheKey, T value)
-
Field Details
-
SESSION_CACHE_NAME
The Constant SESSION_CACHE_NAME.- See Also:
-
AUTH_GRAND_CACHE_NAME
The Constant AUTH_GRAND_CACHE_NAME.- See Also:
-
COLLECTION_CACHE_NAME
The Constant COLLECTION_CACHE_NAME.- See Also:
-
GUEST_SESSION_CACHE_NAME
The Constant GUEST_SESSION_CACHE_NAME.- See Also:
-
OAUTH_CLIENT_CACHE_NAME
The Constant OAUTH_CLIENT_CACHE_NAME.- See Also:
-
OAUTH_CLIENT_PUBLIC_KEY_CACHE_NAME
The Constant OAUTH_CLIENT_PUBLIC_KEY_CACHE_NAME.- See Also:
-
TOKEN_EXPIRE_TIME_CACHE_NAME
The Constant TOKEN_EXPIRE_TIME_CACHE_NAME.- See Also:
-
-
Constructor Details
-
CacheImpl
public CacheImpl()
-
-
Method Details
-
cacheNames
-
getCache
getCache.
-
getValueFromCache
-
saveDetailsToCache
- Type Parameters:
T
- aSerializable
object.- Parameters:
cacheName
- aString
object.cacheKey
- aString
object.value
- aSerializable
object.- Returns:
- a
Object
object.
-
deleteCacheWithKey
deleteCacheWithKey.
-
deleteCache
deleteCache.
-
clearCache
-
putValueWithExpireTime
-
getValue
-