Template Struct memory

Struct Documentation

template<typename KeyT, typename ValueT = void>
struct udho::cache::storage::memory

Public Types

typedef KeyT key_type
typedef ValueT value_type
typedef content<ValueT> content_type
typedef std::map<key_type, content_type> map_type
typedef storage::memory<KeyT, ValueT> self_type
typedef udho::config<udho::configs::session> session_config_type
typedef session_config_type config_type

Public Functions

memory(const session_config_type &config)
memory(const self_type&) = delete
memory(self_type&&) = default
std::size_t size() const
bool exists(const key_type &key) 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)
bool remove(const key_type &key)

Protected Attributes

const session_config_type &_config
map_type _storage
boost::mutex _mutex