#2348 - Rename Database.getServerCacheManager() to cacheManager() with deprecation

This commit is contained in:
Rob Bygrave
2021-09-02 23:14:33 +12:00
parent fe67abce83
commit 0ed6ccf499
23 changed files with 39 additions and 32 deletions
@@ -54,7 +54,7 @@ public class ClusterTest {
fooA = DB.find(Person.class, foo.getId());
assertCounts(dualCacheA, 2, 1, 0, 1);
fooB = other.find(Person.class, foo.getId());
DuelCache dualCacheB = (DuelCache) other.getServerCacheManager().getBeanCache(Person.class);
DuelCache dualCacheB = (DuelCache) other.cacheManager().getBeanCache(Person.class);
assertCounts(dualCacheB, 2, 1, 1, 0);
}
@@ -69,10 +69,10 @@ public class ClusterTest {
foo.save();
}
other.getServerCacheManager().clearAll();
other.cacheManager().clearAll();
other.metaInfo().resetAllMetrics();
DuelCache dualCache = (DuelCache) other.getServerCacheManager().getBeanCache(Person.class);
DuelCache dualCache = (DuelCache) other.cacheManager().getBeanCache(Person.class);
Person foo0 = other.find(Person.class, 1);
assertCounts(dualCache, 0, 1, 0, 1);