#include <userver/components/fs_cache.hpp>
Component for storing files in memory.
Name | Description | Default value |
---|---|---|
dir | directory to cache files from | /var/www |
update-period | Update period (0 - fill the cache only at startup) | 0 |
fs-task-processor | task processor to do filesystem operations | fs-task-processor |
Definition at line 30 of file fs_cache.hpp.
Public Types | |
using | Client = fs::FsCacheClient |
Public Member Functions | |
FsCache (const components::ComponentConfig &config, const components::ComponentContext &context) | |
const Client & | GetClient () const |
Public Member Functions inherited from components::LoggableComponentBase | |
LoggableComponentBase (const ComponentConfig &, const ComponentContext &) | |
LoggableComponentBase (LoggableComponentBase &&)=delete | |
LoggableComponentBase (const LoggableComponentBase &)=delete | |
~LoggableComponentBase () override=default | |
ComponentHealth | GetComponentHealth () const override |
void | OnLoadingCancelled () override |
void | OnAllComponentsLoaded () override |
void | OnAllComponentsAreStopping () override |
Static Public Member Functions | |
static yaml_config::Schema | GetStaticConfigSchema () |
Static Public Member Functions inherited from components::LoggableComponentBase | |
static yaml_config::Schema | GetStaticConfigSchema () |
Definition at line 32 of file fs_cache.hpp.