mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#2348 - Rename Database.getServerCacheManager() to cacheManager() with deprecation
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user