Package com.nimbusds.common.infinispan
Class RedisCacheStoreChecks
java.lang.Object
com.nimbusds.common.infinispan.RedisCacheStoreChecks
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
Modifier and TypeClassDescriptionstatic class
Configuration exception.static class
Configuration warning. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
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.
-