Class RedisCacheManager

All Implemented Interfaces:
InitializingBean, CacheManager

public class RedisCacheManager extends AbstractTransactionSupportingCacheManager
CacheManager implementation for Redis backed by RedisCache.

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

Caches requiring a different cache configuration 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: