Template Struct disk¶
Defined in File cache.h
Struct Documentation¶
-
template<typename
KeyT, typenameValueT= void>
structudho::cache::storage::disk¶ Public Types
-
typedef std::map<key_type, content_type>
map_type¶
-
typedef session_config_type
config_type¶
Public Functions
-
disk(const session_config_type &config)¶
-
std::size_t
size() const¶
-
void
create(const key_type &key, const content_type &content)¶
-
content_type
retrieve(const key_type &key) const¶
-
bool
update(const key_type &key, const content_type &content)¶
Protected Functions
-
boost::filesystem::path
storage() const¶
-
std::string
extension() const¶
-
void
save(udho::configs::session::format format, std::ofstream &file, const content_type &content)¶
-
void
load(udho::configs::session::format format, std::ifstream &file, content_type &content) const¶
-
void
save(std::ofstream &file, const content_type &content)¶
-
void
load(std::ifstream &file, content_type &content) const¶
-
typedef std::map<key_type, content_type>