userver: fs::FsCacheClient Class Reference
Loading...
Searching...
No Matches
fs::FsCacheClient Class Referencefinal

#include <userver/fs/fs_cache_client.hpp>

Detailed Description

Class client for storing files in memory Usually retrieved from components::FsCache.

Definition at line 28 of file fs_cache_client.hpp.

Classes

struct  Settings
 Configuration parameters for FsCacheClient. More...

Public Member Functions

 FsCacheClient (const Settings &settings)
 Fills the cache and starts periodic update.
FileInfoWithDataConstPtr TryGetFile (std::string_view path) const
 get file from memory
void UpdateCache ()
 Concurrency-safe cache update.

Member Function Documentation

◆ TryGetFile()

FileInfoWithDataConstPtr fs::FsCacheClient::TryGetFile ( std::string_view path) const

get file from memory

Parameters
pathto file
Returns
file info and content ; nullptr if no file with specified name on FS

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