diff Plugin/Cache/CacheScheduler.cpp @ 4:ecefd45026bf

configuration of the cache
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 26 Feb 2015 16:55:37 +0100
parents 02f7a0400a91
children fcbc8e77cf8f
line wrap: on
line diff
--- a/Plugin/Cache/CacheScheduler.cpp	Thu Feb 26 11:39:28 2015 +0100
+++ b/Plugin/Cache/CacheScheduler.cpp	Thu Feb 26 16:55:37 2015 +0100
@@ -300,6 +300,15 @@
   }
 
 
+  void CacheScheduler::SetQuota(int bundle,
+                                uint32_t maxCount,
+                                uint64_t maxSpace)
+  {
+    boost::mutex::scoped_lock lock(cacheMutex_);
+    cache_.SetBundleQuota(bundle, maxCount, maxSpace);
+  }
+
+
   void CacheScheduler::Invalidate(int bundle,
                                   const std::string& item)
   {