diff options
| author | Cody Robibero <cody@robibe.ro> | 2025-03-27 18:16:54 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-27 18:16:54 -0600 |
| commit | 88ceaa39b0347c7b7626d38a48baa64923c66eeb (patch) | |
| tree | 89e09f1095f11168d1bd5bf81a98f9366eed186b /MediaBrowser.Model | |
| parent | e9331fe9d73469bb04ae549ceaa9ea6f1ed7aa6a (diff) | |
Implement limiting caches (#13605)
* Implement basic expiring cache for LibraryManager
* Add expiring cache to more places
* Rider why
* Make DirectoryService caches static
* Use FastConcurrentLru
* Reduce default cache size
* Simplify DirectoryService caches
* Make directory service cache size at least 128
Diffstat (limited to 'MediaBrowser.Model')
| -rw-r--r-- | MediaBrowser.Model/Configuration/ServerConfiguration.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs index 693bf90e7..f4e6c8e2c 100644 --- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs +++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs @@ -178,6 +178,11 @@ public class ServerConfiguration : BaseApplicationConfiguration public int LibraryUpdateDuration { get; set; } = 30; /// <summary> + /// Gets or sets the maximum amount of items to cache. + /// </summary> + public int CacheSize { get; set; } = Environment.ProcessorCount * 100; + + /// <summary> /// Gets or sets the image saving convention. /// </summary> /// <value>The image saving convention.</value> |
