42c9cf61c8
GET /config/server/caches/ lists the server caches. Caches defined by plugins are included. The implementation of the SSH show-caches was adapted so that it uses the new REST endpoint to get the information about the caches. This avoids code duplication. For disk caches a new interface was introduced in gerrit-server. This is done because the list caches REST endpoint needs extra information for disk caches which can only be provided by the disk cache, aka H2CacheImpl. H2CacheImpl is defined in gerrit-cache-h2, but gerrit-server doesn't have a dependency on it and hence can't use instanceof to check whether a cache is a disk cache. Adding this dependency is not wanted and also not possible (because gerrit-cache-h2 already depends on gerrit-server and we can't have cycles in the dependencies). Change-Id: I21bf6e114310f98051a0a8db01012511f58d4add Signed-off-by: Edwin Kempin <edwin.kempin@sap.com> |
||
---|---|---|
.. | ||
src/main/java/com/google/gerrit/server/cache/h2 | ||
BUCK |