diff options
Diffstat (limited to 'include/leveldb/cache.h')
-rw-r--r-- | include/leveldb/cache.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/leveldb/cache.h b/include/leveldb/cache.h index 5f86cd0..6819d5b 100644 --- a/include/leveldb/cache.h +++ b/include/leveldb/cache.h @@ -88,6 +88,10 @@ class Cache { // leveldb may change Prune() to a pure abstract method. virtual void Prune() {} + // Return an estimate of the combined charges of all elements stored in the + // cache. + virtual size_t TotalCharge() const = 0; + private: void LRU_Remove(Handle* e); void LRU_Append(Handle* e); |