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

Configuration for the query cache. More...

#include <query_cache.h>

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

Public Attributes

std::size_t max_entries {1000}
 Maximum number of cached query results.
 
std::chrono::seconds ttl {300}
 Time-to-live for cached results (default: 5 minutes)
 
bool enable_logging {false}
 Enable debug logging for cache operations.
 
bool enable_metrics {true}
 Enable metrics reporting to pacs_metrics.
 
std::string cache_name {"cfind_query_cache"}
 Cache identifier for logging and metrics.
 

Detailed Description

Configuration for the query cache.

Definition at line 47 of file query_cache.h.

Member Data Documentation

◆ cache_name

std::string kcenon::pacs::services::cache::query_cache_config::cache_name {"cfind_query_cache"}

Cache identifier for logging and metrics.

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

Definition at line 61 of file query_cache.h.

61{"cfind_query_cache"};

◆ enable_logging

bool kcenon::pacs::services::cache::query_cache_config::enable_logging {false}

Enable debug logging for cache operations.

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

Definition at line 55 of file query_cache.h.

55{false};

◆ enable_metrics

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

Enable metrics reporting to pacs_metrics.

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

Definition at line 58 of file query_cache.h.

58{true};

◆ max_entries

std::size_t kcenon::pacs::services::cache::query_cache_config::max_entries {1000}

Maximum number of cached query results.

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

Definition at line 49 of file query_cache.h.

49{1000};

◆ ttl

std::chrono::seconds kcenon::pacs::services::cache::query_cache_config::ttl {300}

Time-to-live for cached results (default: 5 minutes)

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

Definition at line 52 of file query_cache.h.

52{300};

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