//the recovery cache should not participate in main cache's transactions, especially because removals
// from this cache are executed in the context of a finalised transaction and cause issues.
config.fluent().transaction().transactionMode(TransactionMode.NON_TRANSACTIONAL);
config.fluent().clustering().mode(Configuration.CacheMode.LOCAL);
config.fluent().expiration().lifespan(DEFAULT_EXPIRY);
config.fluent().recovery().disable();
return config;
}
private RecoveryManager buildRecoveryManager(String cacheName, String recoveryCacheName, EmbeddedCacheManager cm, boolean isDefault) {
log.tracef("About to obtain a reference to the recovery cache: %s", recoveryCacheName);