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 | 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.
|
public static void check(org.infinispan.manager.EmbeddedCacheManager cacheManager)
cacheManager
- The initialised Infinispan cache manager.org.infinispan.persistence.spi.PersistenceException
- If a Redis cache store with zero
database number was detected.Copyright © 2018 Connect2id. All rights reserved.