From e5790e333aa145f27caa5072387c318532c60d21 Mon Sep 17 00:00:00 2001 From: Wyatt Childers Date: Tue, 7 May 2024 15:02:40 -0400 Subject: [PATCH] docs(cli): cache hard limits flags (#3846) --- site/content/docs/Advanced/Caching/_index.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/site/content/docs/Advanced/Caching/_index.md b/site/content/docs/Advanced/Caching/_index.md index e2b3763df8..571003527a 100644 --- a/site/content/docs/Advanced/Caching/_index.md +++ b/site/content/docs/Advanced/Caching/_index.md @@ -57,6 +57,14 @@ $ kopia cache set --max-list-cache-duration=300s Note the cache sizes are not hard limits: cache is swept periodically (every few minutes) to bring the total usage below the defined limit by removing least-recently used cache items. +A hard limit can be set if required via the corresponding `limit` flag: +``` +# set the maximum content cache size to 30GB +$ kopia cache set --content-cache-size-limit-mb=30000 +# set the maximum metadata cache size to 20GB +$ kopia cache set --metadata-cache-size-limit-mb=20000 +``` + ### Clearing Cache Cache can be cleared on demand by `kopia cache clear` or by simply removing appropriate files. It is always safe to remove files from cache.