Template Struct flake

Inheritance Relationships

Derived Type

Struct Documentation

template<typename KeyT, typename T>
struct udho::cache::flake

copiable flake containes a reference to the actual registry object

Subclassed by udho::cache::shadow< KeyT, T >

Public Types

typedef KeyT key_type
typedef T value_type
typedef registry<key_type, T> registry_type
typedef flake<KeyT, T> flake_type
typedef flake_type self_type

Public Functions

template<template<typename, typename> class StorageT, typename ...X>
flake(store<StorageT, KeyT, X...> &store)
bool exists(const key_type &key) const
value_type at(const key_type &key) const
void insert(const key_type &key, const value_type &value)
void update(const key_type &key, const value_type &value)
std::size_t size(const key_type &key) const
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