Template Struct engine

Inheritance Relationships

Base Types

Struct Documentation

template<typename StorageT>
struct udho::cache::engine : private StorageT, public udho::cache::abstract_engine<StorageT::key_type, StorageT::value_type>

Public Types

typedef StorageT storage_type
typedef abstract_engine<typename StorageT::key_type, typename StorageT::value_type> abstract_engine_type
typedef StorageT::key_type key_type
typedef StorageT::value_type value_type
typedef StorageT::content_type content_type
typedef engine<StorageT> self_type
typedef StorageT::config_type config_type

Public Functions

engine(const config_type &config)
std::size_t size() const final
bool exists(const key_type &key) const final
void create(const key_type &key, const content_type &content) final
content_type retrieve(const key_type &key) const final
bool update(const key_type &key, const content_type &content) final
bool remove(const key_type &key) final