Mercurial > hg > orthanc
diff Core/Cache/MemoryStringCache.cpp @ 3563:4812825e69fc
accessor to the cache can now require to be unique
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 07 Nov 2019 15:35:18 +0100 |
parents | 4d809b2e1141 |
children | 94f4a18a79cc |
line wrap: on
line diff
--- a/Core/Cache/MemoryStringCache.cpp Thu Nov 07 10:50:50 2019 +0100 +++ b/Core/Cache/MemoryStringCache.cpp Thu Nov 07 15:35:18 2019 +0100 @@ -69,7 +69,7 @@ bool MemoryStringCache::Fetch(std::string& value, const std::string& key) { - MemoryObjectCache::Reader reader(cache_, key); + MemoryObjectCache::Accessor reader(cache_, key, false /* multiple readers are allowed */); if (reader.IsValid()) {