|
PACS System 0.1.0
PACS DICOM system library
|
Thread-safe LRU (Least Recently Used) cache for query results. More...
#include <atomic>#include <chrono>#include <cstdint>#include <functional>#include <list>#include <memory>#include <mutex>#include <optional>#include <shared_mutex>#include <string>#include <unordered_map>

Go to the source code of this file.
Classes | |
| struct | kcenon::pacs::services::cache::cache_config |
| Configuration options for the LRU cache. More... | |
| struct | kcenon::pacs::services::cache::cache_stats |
| Statistics for cache performance monitoring. More... | |
| class | kcenon::pacs::services::cache::simple_lru_cache< Key, Value, Hash, KeyEqual > |
| Thread-safe LRU cache with TTL support. More... | |
| struct | kcenon::pacs::services::cache::simple_lru_cache< Key, Value, Hash, KeyEqual >::cache_entry |
Namespaces | |
| namespace | kcenon |
| namespace | kcenon::pacs |
| namespace | kcenon::pacs::services |
| namespace | kcenon::pacs::services::cache |
Typedefs | |
| template<typename Value > | |
| using | kcenon::pacs::services::cache::string_lru_cache = simple_lru_cache<std::string, Value> |
| String-keyed LRU cache for query results. | |
Thread-safe LRU (Least Recently Used) cache for query results.
This file provides a template-based LRU cache implementation designed for caching DICOM query results. It supports configurable maximum size, TTL (Time-To-Live), and integrates with the PACS monitoring system for metrics.
The cache uses a combination of a doubly-linked list (for LRU ordering) and a hash map (for O(1) lookups) to achieve efficient cache operations.
Definition in file simple_lru_cache.h.