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.CacheManager
newCacheManager
(org.springframework.cache.CacheManager... cacheCacheManager) Factory method for create the new compositeCacheManager
from the givenCacheManager
's.static org.springframework.cache.interceptor.CacheErrorHandler
Factory method for create the newSimpleCacheErrorHandler
object.static org.springframework.cache.interceptor.CacheResolver
Factory method for create the newSimpleCacheResolver
object.static org.springframework.cache.interceptor.KeyGenerator
Factory method for create the newSimpleKeyGenerator
object.
-
Method Details
-
newCacheManager
public static org.springframework.cache.CacheManager newCacheManager(org.springframework.cache.CacheManager... cacheCacheManager) Factory method for create the new compositeCacheManager
from 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 newSimpleKeyGenerator
object.- Returns:
- the new
SimpleKeyGenerator
-
newSimpleCacheResolver
public static org.springframework.cache.interceptor.CacheResolver newSimpleCacheResolver()Factory method for create the newSimpleCacheResolver
object.- Returns:
- the new
SimpleCacheResolver
-
newSimpleCacheErrorHandler
public static org.springframework.cache.interceptor.CacheErrorHandler newSimpleCacheErrorHandler()Factory method for create the newSimpleCacheErrorHandler
object.- Returns:
- the new
SimpleCacheErrorHandler
-