ClickHouse/src/Common/FileCacheSettings.h

21 lines
508 B
C++
Raw Normal View History

2022-03-21 13:56:38 +00:00
#pragma once
#include <Common/FileCache_fwd.h>
2022-04-07 16:46:46 +00:00
namespace Poco { namespace Util { class AbstractConfiguration; } }
namespace DB
{
struct FileCacheSettings
{
size_t max_size = 0;
size_t max_elements = REMOTE_FS_OBJECTS_CACHE_DEFAULT_MAX_ELEMENTS;
size_t max_file_segment_size = REMOTE_FS_OBJECTS_CACHE_DEFAULT_MAX_FILE_SEGMENT_SIZE;
2022-03-23 18:00:42 +00:00
bool cache_on_write_operations = false;
void loadFromConfig(const Poco::Util::AbstractConfiguration & config, const std::string & config_prefix);
};
}