PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
kcenon::pacs::services::cache::cache_config Struct Reference

Configuration options for the LRU cache. More...

#include <simple_lru_cache.h>

Collaboration diagram for kcenon::pacs::services::cache::cache_config:
Collaboration graph

Public Attributes

std::size_t max_size {1000}
 Maximum number of entries in the cache.
 
std::chrono::seconds ttl {300}
 Time-To-Live for cache entries in seconds (default: 300 = 5 minutes)
 
bool enable_metrics {true}
 Enable metrics collection for hit/miss tracking.
 
std::string cache_name {"lru_cache"}
 Name for metrics identification (e.g., "query_cache", "study_cache")
 

Detailed Description

Configuration options for the LRU cache.

Definition at line 53 of file simple_lru_cache.h.

Member Data Documentation

◆ cache_name

std::string kcenon::pacs::services::cache::cache_config::cache_name {"lru_cache"}

Name for metrics identification (e.g., "query_cache", "study_cache")

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/services/cache/simple_lru_cache.h.

Definition at line 64 of file simple_lru_cache.h.

64{"lru_cache"};

Referenced by kcenon::pacs::services::cache::simple_lru_cache< Key, Value, Hash, KeyEqual >::name().

◆ enable_metrics

bool kcenon::pacs::services::cache::cache_config::enable_metrics {true}

Enable metrics collection for hit/miss tracking.

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/services/cache/simple_lru_cache.h.

Definition at line 61 of file simple_lru_cache.h.

61{true};

◆ max_size

std::size_t kcenon::pacs::services::cache::cache_config::max_size {1000}

◆ ttl


The documentation for this struct was generated from the following file: