userver: fs::FsCacheClient::Settings Struct Reference
Loading...
Searching...
No Matches
fs::FsCacheClient::Settings Struct Referencefinal

#include <userver/fs/fs_cache_client.hpp>

Detailed Description

Configuration parameters for FsCacheClient.

Definition at line 31 of file fs_cache_client.hpp.

Public Attributes

std::string dir
 Directory to cache files from.
std::chrono::milliseconds update_period {0}
 Update period (0 - fill the cache only at startup), not used in Linux.
engine::TaskProcessor & task_processor
 Task processor to do filesystem operations.
std::size_t max_size_to_cache = kDefaultMaxSizeToCache
 For files larger than this limit, the full path is stored instead of the contents.

Member Data Documentation

◆ dir

std::string fs::FsCacheClient::Settings::dir

Directory to cache files from.

Definition at line 33 of file fs_cache_client.hpp.

◆ max_size_to_cache

std::size_t fs::FsCacheClient::Settings::max_size_to_cache = kDefaultMaxSizeToCache

For files larger than this limit, the full path is stored instead of the contents.

Definition at line 42 of file fs_cache_client.hpp.

◆ task_processor

engine::TaskProcessor& fs::FsCacheClient::Settings::task_processor

Task processor to do filesystem operations.

Definition at line 39 of file fs_cache_client.hpp.

◆ update_period

std::chrono::milliseconds fs::FsCacheClient::Settings::update_period {0}

Update period (0 - fill the cache only at startup), not used in Linux.

Definition at line 36 of file fs_cache_client.hpp.


The documentation for this struct was generated from the following file: