diff options
Diffstat (limited to 'searchlib/src/vespa/searchlib/docstore/documentstore.h')
-rw-r--r-- | searchlib/src/vespa/searchlib/docstore/documentstore.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/docstore/documentstore.h b/searchlib/src/vespa/searchlib/docstore/documentstore.h index bb62b09123f..aa849371b6d 100644 --- a/searchlib/src/vespa/searchlib/docstore/documentstore.h +++ b/searchlib/src/vespa/searchlib/docstore/documentstore.h @@ -1,4 +1,4 @@ -// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once @@ -37,6 +37,7 @@ public: { } CompressionConfig getCompression() const { return _compression; } size_t getMaxCacheBytes() const { return _maxCacheBytes; } + Config & disableCache() { _maxCacheBytes = 0; return *this; } Config & updateStrategy(UpdateStrategy strategy) { _updateStrategy = strategy; return *this; } UpdateStrategy updateStrategy() const { return _updateStrategy; } bool operator == (const Config &) const; @@ -84,6 +85,7 @@ public: DataStoreStorageStats getStorageStats() const override; vespalib::MemoryUsage getMemoryUsage() const override; std::vector<DataStoreFileChunkStats> getFileChunkStats() const override; + size_t getCacheCapacity() const; /** * Implements common::ICompactableLidSpace |