#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
+1 -1
View File
@@ -1246,7 +1246,7 @@ public final class DB {
* Return the manager of the level 2 cache ("L2" cache).
*/
public static ServerCacheManager getServerCacheManager() {
return getDefault().getServerCacheManager();
return getDefault().cacheManager();
}
/**
@@ -1495,7 +1495,15 @@ public interface Database {
/**
* Return the manager of the server cache ("L2" cache).
*/
ServerCacheManager getServerCacheManager();
ServerCacheManager cacheManager();
/**
* Deprecated migrate to cacheManager().
*/
@Deprecated
default ServerCacheManager getServerCacheManager() {
return cacheManager();
}
/**
* Return the BackgroundExecutor service for asynchronous processing of
+1 -1
View File
@@ -1208,7 +1208,7 @@ public final class Ebean {
* Return the manager of the server cache ("L2" cache).
*/
public static ServerCacheManager getServerCacheManager() {
return getDefault().getServerCacheManager();
return getDefault().cacheManager();
}
/**