|
Leosac
0.8.0
Open Source Access Control
|
Go to the documentation of this file.
24 #include <boost/any.hpp>
59 const UnderlyingRegistry::Clock::time_point &expire_at)
static void set(const KeyType &key, const T &obj)
A simple, thread-local container to share various type of objects.
bool has(const KeyType &key) const
static void erase(const KeyType &key)
A simple container that can holds object of any type.
static thread_local UnderlyingRegistry registry_
This is the header file for a generated source file, GitSHA1.cpp.
static void set(const KeyType &key, const T &obj, const UnderlyingRegistry::Clock::time_point &expire_at)
static T get(const KeyType &key)
std::enable_if_t< std::is_same< KeyType, std::string >::value &&!std::is_same< KeyType, const char * >::value, T > get(const std::string &key) const
Specialization for key of type std::string.
void set(const KeyType &key, const T &obj)
void erase(const KeyType &key)
Erase an entry for the store.
void purge()
Remove expired entry from the store.
static bool has(const KeyType &key)