comparison OrthancStone/Sources/Toolbox/ParsedDicomCache.h @ 1714:a878e807cd96

configuration option "DicomCacheSize", warning if cache should be larger
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Nov 2020 17:57:10 +0100
parents 8563ea5d8ae4
children 9ac2a65d4172
comparison
equal deleted inserted replaced
1713:aec45e0b2528 1714:a878e807cd96
34 34
35 static std::string GetIndex(unsigned int bucket, 35 static std::string GetIndex(unsigned int bucket,
36 const std::string& bucketKey); 36 const std::string& bucketKey);
37 37
38 Orthanc::MemoryObjectCache cache_; 38 Orthanc::MemoryObjectCache cache_;
39 size_t lowCacheSizeWarning_;
39 40
40 public: 41 public:
41 explicit ParsedDicomCache(size_t size) 42 explicit ParsedDicomCache(size_t size) :
43 lowCacheSizeWarning_(0)
42 { 44 {
43 cache_.SetMaximumSize(size); 45 cache_.SetMaximumSize(size);
44 } 46 }
45 47
46 void Invalidate(unsigned int bucket, 48 void Invalidate(unsigned int bucket,