userver
C++ Async Framework
Loading...
Searching...
No Matches
fs_cache.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/components/fs_cache.hpp
4
/// @brief @copybrief components::FsCache
5
6
#
include
<
userver
/
components
/
component_base
.
hpp
>
7
#
include
<
userver
/
fs
/
fs_cache_client
.
hpp
>
8
#
include
<
userver
/
yaml_config
/
fwd
.
hpp
>
9
10
USERVER_NAMESPACE_BEGIN
11
12
namespace
components
{
13
14
/// @ingroup userver_components
15
///
16
/// @brief Component for storing files in memory
17
///
18
/// ## Static options of components::FsCache :
19
/// @include{doc} scripts/docs/en/components_schema/core/src/components/fs_cache.md
20
///
21
/// Options inherited from @ref components::ComponentBase :
22
/// @include{doc} scripts/docs/en/components_schema/core/src/components/impl/component_base.md
23
class
FsCache
final
:
public
components
::
ComponentBase
{
24
public
:
25
using
Client = fs::FsCacheClient;
26
27
FsCache(
const
components
::ComponentConfig& config,
const
components
::ComponentContext& context);
28
29
static
yaml_config
::Schema GetStaticConfigSchema();
30
31
const
Client& GetClient()
const
;
32
33
private
:
34
Client client_;
35
};
36
37
template
<>
38
inline
constexpr
bool
kHasValidate<FsCache> =
true
;
39
40
}
// namespace components
41
42
USERVER_NAMESPACE_END
userver
components
fs_cache.hpp
Generated on Fri Dec 5 2025 12:19:44 for userver by
Doxygen
1.13.2