aboutsummaryrefslogtreecommitdiff
path: root/src/cache.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-05-28 19:58:08 +0000
committerMike Buland <eichlan@xagasoft.com>2009-05-28 19:58:08 +0000
commitfcaaf2927914cfda505051693f5717b4a56ec04a (patch)
treee9769c4e1f420267c5d4903bbff26ca53a6f2934 /src/cache.h
parent22914644fb62bc1a9d49eec50a10f2870dde1d0b (diff)
downloadlibbu++-fcaaf2927914cfda505051693f5717b4a56ec04a.tar.gz
libbu++-fcaaf2927914cfda505051693f5717b4a56ec04a.tar.bz2
libbu++-fcaaf2927914cfda505051693f5717b4a56ec04a.tar.xz
libbu++-fcaaf2927914cfda505051693f5717b4a56ec04a.zip
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).
Diffstat (limited to 'src/cache.h')
-rw-r--r--src/cache.h5
1 files changed, 5 insertions, 0 deletions
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
295 return pStore->getKeys(); 295 return pStore->getKeys();
296 } 296 }
297 297
298 int getSize()
299 {
300 return pStore->getSize();
301 }
302
298 /** 303 /**
299 * Make sure all currently loaded but not-in-use objects are synced to 304 * Make sure all currently loaded but not-in-use objects are synced to
300 * the store. 305 * the store.