Template Struct abstract_engine

Struct Documentation

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

Public Types

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

Public Functions

std::size_t size() const = 0
bool exists(const key_type &key) const = 0
void create(const key_type &key, const content_type &content) = 0
content_type retrieve(const key_type &key) const = 0
bool update(const key_type &key, const content_type &content) = 0
bool remove(const key_type &key) = 0
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
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)
template<typename U = value_type>
std::enable_if<!std::is_same<U, void>::value, bool>::type update(const key_type &key, const U &value)
bool update(const key_type &key)