Mercurial > hg > orthanc-stone
comparison Resources/Orthanc/Core/Cache/MemoryCache.cpp @ 204:9d269d7cfeb8
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 28 Mar 2018 11:28:27 +0200 |
parents | 03afbee0cc7b |
children |
comparison
equal
deleted
inserted
replaced
203:431e991af593 | 204:9d269d7cfeb8 |
---|---|
76 provider_(provider), | 76 provider_(provider), |
77 cacheSize_(cacheSize) | 77 cacheSize_(cacheSize) |
78 { | 78 { |
79 } | 79 } |
80 | 80 |
81 void MemoryCache::Invalidate(const std::string& id) | |
82 { | |
83 if (index_.Contains(id)) | |
84 { | |
85 VLOG(1) << "Invalidating a cache page"; | |
86 index_.Invalidate(id); | |
87 } | |
88 } | |
89 | |
81 MemoryCache::~MemoryCache() | 90 MemoryCache::~MemoryCache() |
82 { | 91 { |
83 while (!index_.IsEmpty()) | 92 while (!index_.IsEmpty()) |
84 { | 93 { |
85 Page* element = NULL; | 94 Page* element = NULL; |