Class RedisCacheManager

java.lang.Object
org.springframework.cache.support.AbstractCacheManager
org.springframework.cache.transaction.AbstractTransactionSupportingCacheManager
org.springframework.data.redis.cache.RedisCacheManager
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.cache.CacheManager

public class RedisCacheManager extends org.springframework.cache.transaction.AbstractTransactionSupportingCacheManager
CacheManager backed by a RedisCache.

This CacheManager creates caches by default upon first write. Empty caches are not visible in Redis due to how Redis represents empty data structures.

Caches requiring a different RedisCacheConfiguration than the default cache configuration can be specified via RedisCacheManager.RedisCacheManagerBuilder.withInitialCacheConfigurations(Map) or individually using RedisCacheManager.RedisCacheManagerBuilder.withCacheConfiguration(String, RedisCacheConfiguration).

Since:
2.0
Author:
Christoph Strobl, Mark Paluch, Yanming Zhou, John Blum
See Also: