Template Struct driver

Struct Documentation

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

Public Types

typedef KeyT key_type
typedef ValueT value_type
typedef content<ValueT> content_type
typedef abstract_engine<KeyT, ValueT> abstract_engine_type

Public Functions

driver(abstract_engine_type &e)
std::size_t size() const
bool exists(const key_type &key) const
template<typename U = value_type>
std::enable_if<!std::is_same<U, void>::value>::type insert(const key_type &key, const U &value)
template<typename U = value_type>
std::enable_if<std::is_same<U, void>::value>::type insert(const key_type &key)
content_type retrieve(const key_type &key) const
bool update(const key_type &key, const content_type &content)
bool update(const key_type &key)
template<typename U = value_type>
std::enable_if<std::is_same<U, ValueT>::value, bool>::type update(const key_type &key, const U &value)
bool remove(const key_type &key)
boost::posix_time::ptime created(const key_type &key) const
boost::posix_time::ptime updated(const key_type &key) const
boost::posix_time::time_duration age(const key_type &key) const
boost::posix_time::time_duration idle(const key_type &key) const

Public Members

abstract_engine_type &_engine