From b25a4f651b1efe42f2e75a2e3235a474355e20d2 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 29 Dec 2023 14:20:14 -0600 Subject: docs --- docs/config.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/config.md b/docs/config.md index 965b4e8e..e0fdca69 100644 --- a/docs/config.md +++ b/docs/config.md @@ -188,10 +188,13 @@ performance will start to get worse as more are added. The optimal number of wo The default number of workers determined by the [Environment.ProcessorCount](https://learn.microsoft.com/en-us/dotnet/api/system.environment.processorcount?view=net-6.0) property. -| Command Line | Environment Variable | Description | -| ---------------------------- | -------------------------------- | ------------------------------------------------------- | -| `--share-cache-storage-mode` | `SLSKD_SHARE_CACHE_STORAGE_MODE` | The type of storage to use for the cache (Memory, Disk) | -| `--share-cache-workers` | `SLSKD_SHARE_CACHE_WORKERS` | The number of workers to use while scanning shares | +Shares can be configured to be automatically re-scanned at a regular interval by setting the retention limit for the cache. This value is empty by default, and shares will not be re-scanned automatically. The interval is set in minutes. + +| Command Line | Environment Variable | Description | +| ---------------------------- | -------------------------------- | --------------------------------------------------------- | +| `--share-cache-storage-mode` | `SLSKD_SHARE_CACHE_STORAGE_MODE` | The type of storage to use for the cache (Memory, Disk) | +| `--share-cache-workers` | `SLSKD_SHARE_CACHE_WORKERS` | The number of workers to use while scanning shares | +| `--share-cache-retention` | `SLSKD_SHARE_CACHE_RETENTION` | The interval on which the cache is re-scanned, in minutes | #### **YAML** ```yaml @@ -199,6 +202,7 @@ shares: cache: storage_mode: memory workers: 4 # assuming the host has a quad core CPU + retention: 10080 # 1 week ``` # Relay -- cgit v1.2.3