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/cachestorenids.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/cachestorenids.h') diff --git a/src/cachestorenids.h b/src/cachestorenids.h index 0f7c72c..6a1c31b 100644 --- a/src/cachestorenids.h +++ b/src/cachestorenids.h @@ -131,6 +131,11 @@ namespace Bu return hId.getKeys(); } + virtual int getSize() + { + return hId.getSize(); + } + private: Nids nStore; typedef Bu::Hash NidHash; -- cgit v1.2.3