aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/docstore/visitcache.h
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/vespa/searchlib/docstore/visitcache.h')
-rw-r--r--searchlib/src/vespa/searchlib/docstore/visitcache.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/docstore/visitcache.h b/searchlib/src/vespa/searchlib/docstore/visitcache.h
index 9a07c0ceab2..baa594b8d28 100644
--- a/searchlib/src/vespa/searchlib/docstore/visitcache.h
+++ b/searchlib/src/vespa/searchlib/docstore/visitcache.h
@@ -104,6 +104,7 @@ public:
void invalidate(uint32_t key) { remove(key); }
vespalib::CacheStats getCacheStats() const;
+ vespalib::MemoryUsage getStaticMemoryUsage() const { return _cache->getStaticMemoryUsage(); }
void reconfigure(size_t cacheSize, CompressionConfig compression);
private:
/**
@@ -144,9 +145,10 @@ private:
class Cache : public vespalib::cache<CacheParams> {
public:
Cache(BackingStore & b, size_t maxBytes);
- ~Cache();
+ ~Cache() override;
CompressedBlobSet readSet(const KeySet & keys);
void removeKey(uint32_t key);
+ vespalib::MemoryUsage getStaticMemoryUsage() const override;
private:
void locateAndInvalidateOtherSubsets(const UniqueLock & cacheGuard, const KeySet & keys);
using IdSet = vespalib::hash_set<uint64_t>;