commit | 06181745a047940adf34b9b1fe419bbee6137d22 | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Fri Dec 02 18:48:59 2022 +0000 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Fri Dec 02 20:17:28 2022 +0000 |
tree | 798f7f44846fdb25a3fd1dfdbae65a587431471a | |
parent | 715b154d42bf56300923f327bf4bb6bc277a0b3f [diff] |
getIfPresent: fallback to fetching from store if isn't in memory Align the implementation with what the H2 version of the cache was doing, by always looking at the store as 2nd chance when the in-memory cache not have the requested key when calling getIfPresent. Bug: Issue 16496 Change-Id: I8ab5bdbaba3e3338257446623f696ce5c9748415
Non-blocking and super-fast on-disk cache libModule for Gerrit Code Review based on ChronicleMap on-disk implementation.
This libModule is built like a Gerrit in-tree plugin, using Bazelisk. See the build instructions for more details.
Install the chronicle-map module into the $GERRIT_SITE/lib
directory.
Add the cache-chroniclemap module to $GERRIT_SITE/etc/gerrit.config
as follows:
[gerrit] installModule = com.googlesource.gerrit.modules.cache.chroniclemap.ChronicleMapCacheModule
For further information and supported options, refer to config documentation.
You can check how to migrate from H2 to chronicle-map here.