PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
query_cache.h File Reference

DICOM query result cache with monitoring integration. More...

#include <kcenon/pacs/services/cache/simple_lru_cache.h>
#include <chrono>
#include <memory>
#include <string>
#include <vector>
Include dependency graph for query_cache.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kcenon::pacs::services::cache::query_cache_config
 Configuration for the query cache. More...
 
struct  kcenon::pacs::services::cache::cached_query_result
 Wrapper for cached query results. More...
 
class  kcenon::pacs::services::cache::query_cache
 DICOM query result cache with monitoring integration. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::pacs
 
namespace  kcenon::pacs::services
 
namespace  kcenon::pacs::services::cache
 

Functions

query_cachekcenon::pacs::services::cache::global_query_cache ()
 Get the global query cache instance.
 
bool kcenon::pacs::services::cache::configure_global_cache (const query_cache_config &config)
 Configure the global query cache.
 

Detailed Description

DICOM query result cache with monitoring integration.

This file provides a specialized cache for DICOM C-FIND query results that integrates with the PACS monitoring system for metrics reporting.

The query_cache wraps simple_lru_cache and adds:

  • Integration with pacs_metrics for hit/miss/eviction tracking
  • Integration with logger_adapter for cache event logging
  • Helper methods for building cache keys from query parameters
See also
Issue #209 - [Quick Win] feat(services): Implement simple LRU query cache
Author
kcenon
Since
1.0.0

Definition in file query_cache.h.