|
PACS System 0.1.0
PACS DICOM system library
|
Classes | |
| struct | cache_config |
| Configuration options for the LRU cache. More... | |
| struct | cache_stats |
| Statistics for cache performance monitoring. More... | |
| struct | cached_query_result |
| Wrapper for cached query results. More... | |
| class | query_cache |
| DICOM query result cache with monitoring integration. More... | |
| struct | query_cache_config |
| Configuration for the query cache. More... | |
| class | simple_lru_cache |
| Thread-safe LRU cache with TTL support. More... | |
Typedefs | |
| template<typename Value > | |
| using | string_lru_cache = simple_lru_cache<std::string, Value> |
| String-keyed LRU cache for query results. | |
Functions | |
| query_cache & | global_query_cache () |
| Get the global query cache instance. | |
| bool | configure_global_cache (const query_cache_config &config) |
| Configure the global query cache. | |
| using kcenon::pacs::services::cache::string_lru_cache = simple_lru_cache<std::string, Value> |
String-keyed LRU cache for query results.
Commonly used for caching C-FIND query results where the key is a hash of the query parameters.
Definition at line 626 of file simple_lru_cache.h.
| bool kcenon::pacs::services::cache::configure_global_cache | ( | const query_cache_config & | config | ) |
Configure the global query cache.
Must be called before the first access to global_query_cache(). Subsequent calls have no effect.
| config | Cache configuration |
Definition at line 168 of file query_cache.cpp.
|
nodiscard |
Get the global query cache instance.
Returns a singleton instance of the query cache. The cache is initialized with default settings on first access. Use configure_global_cache() to customize settings before first use.
Thread Safety: Thread-safe initialization via Meyer's singleton pattern.
Definition at line 163 of file query_cache.cpp.