Class SpringCacheConfigurationFactory
java.lang.Object
io.github.astrapi69.spring.cache.factory.SpringCacheConfigurationFactory
A factory class for creating cache configuration objects.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.cache.CacheManagernewCacheManager(org.springframework.cache.CacheManager... cacheCacheManager) Factory method for create the new compositeCacheManagerfrom the givenCacheManager's.static org.springframework.cache.interceptor.CacheErrorHandlerFactory method for create the newSimpleCacheErrorHandlerobject.static org.springframework.cache.interceptor.CacheResolverFactory method for create the newSimpleCacheResolverobject.static org.springframework.cache.interceptor.KeyGeneratorFactory method for create the newSimpleKeyGeneratorobject.
-
Method Details
-
newCacheManager
public static org.springframework.cache.CacheManager newCacheManager(org.springframework.cache.CacheManager... cacheCacheManager) Factory method for create the new compositeCacheManagerfrom the givenCacheManager's.- Parameters:
cacheCacheManager- the cache cache manager- Returns:
- the new
CacheManager
-
newSimpleKeyGenerator
public static org.springframework.cache.interceptor.KeyGenerator newSimpleKeyGenerator()Factory method for create the newSimpleKeyGeneratorobject.- Returns:
- the new
SimpleKeyGenerator
-
newSimpleCacheResolver
public static org.springframework.cache.interceptor.CacheResolver newSimpleCacheResolver()Factory method for create the newSimpleCacheResolverobject.- Returns:
- the new
SimpleCacheResolver
-
newSimpleCacheErrorHandler
public static org.springframework.cache.interceptor.CacheErrorHandler newSimpleCacheErrorHandler()Factory method for create the newSimpleCacheErrorHandlerobject.- Returns:
- the new
SimpleCacheErrorHandler
-