Delegate to memory cache factory for non persistent caches

Restore the same contract compared to H2 based persistent caches: if
diskLimit is zero or negative, the cache is considered to be in memory
only and currently installed memory cache factory should be used.

Feature: Issue 13941
Change-Id: If911621de8ca9676d29850e449f14c684f73710e
6 files changed
tree: 2981e8d9fb47b84f2f7c0cfccf4c2a245be60fbf
  1. src/
  2. .gitignore
  3. BUILD
  4. build.md
  5. config.md
  6. external_plugin_deps.bzl
  7. Jenkinsfile
  8. LICENSE
  9. metrics.md
  10. README.md
  11. tuning.md
README.md

Persistent cache for Gerrit, based on ChronicleMap

Non-blocking and super-fast on-disk cache libModule for Gerrit Code Review based on ChronicleMap on-disk implementation.

How to build

This libModule is built like a Gerrit in-tree plugin, using Bazelisk. See the build instructions for more details.

Setup

  • Install cache-chronicalmap module

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.