Mercurial > hg > orthanc-webviewer
diff Plugin/Cache/CacheScheduler.cpp @ 115:c8ca47a67bf3
automatic clearing of the cache
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 07 Dec 2015 17:08:51 +0100 |
parents | a6ba21a083e5 |
children | 3809121c3290 |
line wrap: on
line diff
--- a/Plugin/Cache/CacheScheduler.cpp Mon Dec 07 16:19:22 2015 +0100 +++ b/Plugin/Cache/CacheScheduler.cpp Mon Dec 07 17:08:51 2015 +0100 @@ -411,4 +411,27 @@ { return GetBundleScheduler(bundle).GetFactory(); } + + + void CacheScheduler::SetProperty(CacheProperty property, + const std::string& value) + { + boost::mutex::scoped_lock lock(cacheMutex_); + cache_.SetProperty(property, value); + } + + + bool CacheScheduler::LookupProperty(std::string& target, + CacheProperty property) + { + boost::mutex::scoped_lock lock(cacheMutex_); + return cache_.LookupProperty(target, property); + } + + + void CacheScheduler::Clear() + { + boost::mutex::scoped_lock lock(cacheMutex_); + return cache_.Clear(); + } }