summaryrefslogtreecommitdiff
path: root/src/cachestore.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/cachestore.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/cachestore.h')
-rw-r--r--src/cachestore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cachestore.h b/src/cachestore.h
index 437b3d3..b75864b 100644
--- a/src/cachestore.h
+++ b/src/cachestore.h
@@ -29,6 +29,7 @@ namespace Bu
29 virtual void destroy( obtype *pObj, const keytype &key )=0; 29 virtual void destroy( obtype *pObj, const keytype &key )=0;
30 virtual bool has( const keytype &key )=0; 30 virtual bool has( const keytype &key )=0;
31 virtual Bu::List<keytype> getKeys() { return Bu::List<keytype>(); } 31 virtual Bu::List<keytype> getKeys() { return Bu::List<keytype>(); }
32 virtual int getSize() { return -1; }
32 33
33 private: 34 private:
34 }; 35 };