Package feast.common.auth.config
Class CacheConfiguration
- java.lang.Object
-
- feast.common.auth.config.CacheConfiguration
-
- All Implemented Interfaces:
org.springframework.cache.annotation.CachingConfigurer
@Configuration @EnableCaching public class CacheConfiguration extends Object implements org.springframework.cache.annotation.CachingConfigurer
CacheConfiguration class defines Cache settings for HttpAuthorizationProvider class.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTHORIZATION_CACHEstatic intTTL
-
Constructor Summary
Constructors Constructor Description CacheConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.cache.interceptor.KeyGeneratorauthKeyGenerator()org.springframework.cache.CacheManagercacheManager()org.springframework.cache.interceptor.CacheResolvercacheResolver()org.springframework.cache.interceptor.CacheErrorHandlererrorHandler()org.springframework.cache.interceptor.KeyGeneratorkeyGenerator()
-
-
-
Field Detail
-
TTL
public static int TTL
-
AUTHORIZATION_CACHE
public static final String AUTHORIZATION_CACHE
- See Also:
- Constant Field Values
-
-
Method Detail
-
cacheManager
@Bean public org.springframework.cache.CacheManager cacheManager()
- Specified by:
cacheManagerin interfaceorg.springframework.cache.annotation.CachingConfigurer
-
authKeyGenerator
@Bean public org.springframework.cache.interceptor.KeyGenerator authKeyGenerator()
-
cacheResolver
public org.springframework.cache.interceptor.CacheResolver cacheResolver()
- Specified by:
cacheResolverin interfaceorg.springframework.cache.annotation.CachingConfigurer
-
keyGenerator
public org.springframework.cache.interceptor.KeyGenerator keyGenerator()
- Specified by:
keyGeneratorin interfaceorg.springframework.cache.annotation.CachingConfigurer
-
errorHandler
public org.springframework.cache.interceptor.CacheErrorHandler errorHandler()
- Specified by:
errorHandlerin interfaceorg.springframework.cache.annotation.CachingConfigurer
-
-