From fcaaf2927914cfda505051693f5717b4a56ec04a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 28 May 2009 19:58:08 +0000 Subject: The cache can now efficiently report how many items are stored in it, but there's no way to find out how many are in memory now, I may add something for that later, but it seems more or less unimportant (except maybe for fine-tuning and making interesting looking displays). --- src/cache.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/cache.h') diff --git a/src/cache.h b/src/cache.h index c4e1b0b..0cb2fd2 100644 --- a/src/cache.h +++ b/src/cache.h @@ -295,6 +295,11 @@ namespace Bu return pStore->getKeys(); } + int getSize() + { + return pStore->getSize(); + } + /** * Make sure all currently loaded but not-in-use objects are synced to * the store. -- cgit v1.2.3