Package com.nimbusds.common.infinispan
Class RedisCacheStoreChecks
- java.lang.Object
-
- com.nimbusds.common.infinispan.RedisCacheStoreChecks
-
public class RedisCacheStoreChecks extends Object
Redis cache store checks.See https://github.com/infinispan/infinispan-cachestore-redis notes.
When using AWS ElastiCache, an explicit non-zero database index must be specified for all Redis Store configurations. AWS ElastiCache inserts a special ElastiCacheMasterReplicationTimestamp key in the default database (at zero index) to aid replication, which may lead to unexpected unmarshalling IO exceptions when the Infinispan cache needs to iterate over the stored keys.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RedisCacheStoreChecks.ConfigError
Configuration exception.static class
RedisCacheStoreChecks.ConfigWarning
Configuration warning.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
check(org.infinispan.manager.EmbeddedCacheManager cacheManager)
Checks the configured Redis cache stores to ensure each uses its own database number and that number is non-zero.
-
-
-
Method Detail
-
check
public static void check(org.infinispan.manager.EmbeddedCacheManager cacheManager) throws RedisCacheStoreChecks.ConfigWarning, RedisCacheStoreChecks.ConfigError
Checks the configured Redis cache stores to ensure each uses its own database number and that number is non-zero.- Parameters:
cacheManager
- The initialised Infinispan cache manager.- Throws:
RedisCacheStoreChecks.ConfigWarning
- If a Redis cache store with zero database number was detected.RedisCacheStoreChecks.ConfigError
- If a Redis cache store with a clashing database number was detected.
-
-