--- a/servlib/bundling/BPQCache.h Tue Jan 10 17:03:46 2012 +0000
+++ b/servlib/bundling/BPQCache.h Tue Jan 10 17:50:20 2012 +0000
@@ -69,14 +69,18 @@
/**
* Build a new BPQCcacheEntry from this bundle.
* Copy the bundle into the fragment list
+ * @return true if the new cache entry was created
+ * false otherwise (eg if bundle is larger than cache)
*/
- void create_cache_entry(Bundle* bundle, BPQBlock* block, std::string key);
+ bool create_cache_entry(Bundle* bundle, BPQBlock* block, std::string key);
/**
* Remove existing cache entry along with all bundle fragments
* and create a new entry
+ * @return true if the new cache entry was created
+ * false otherwise (eg if bundle is larger than cache)
*/
- void replace_cache_entry(BPQCacheEntry* entry, Bundle* bundle,
+ bool replace_cache_entry(BPQCacheEntry* entry, Bundle* bundle,
BPQBlock* block, std::string key);
void remove_cache_entry(BPQCacheEntry* entry, std::string key);