public class RedisCacheStoreChecks extends Object
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.
Modifier and Type | Class and Description |
---|---|
static class |
RedisCacheStoreChecks.ConfigError
Configuration exception.
|
static class |
RedisCacheStoreChecks.ConfigWarning
Configuration warning.
|
Modifier and Type | Method and 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.
|
public static void check(org.infinispan.manager.EmbeddedCacheManager cacheManager) throws RedisCacheStoreChecks.ConfigWarning, RedisCacheStoreChecks.ConfigError
cacheManager
- The initialised Infinispan cache manager.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.Copyright © 2020 Connect2id. All rights reserved.