24 #include <boost/any.hpp> 52 static void set(
const KeyType &key,
const T &obj)
58 static void set(
const KeyType &key,
const T &obj,
59 const UnderlyingRegistry::Clock::time_point &expire_at)
bool has(const KeyType &key) const
void set(const KeyType &key, const T &obj)
This is the header file for a generated source file, GitSHA1.cpp.
A simple, thread-local container to share various type of objects.
static void erase(const KeyType &key)
void erase(const KeyType &key)
Erase an entry for the store.
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 purge()
Remove expired entry from the store.
static thread_local UnderlyingRegistry registry_
static bool has(const KeyType &key)
A simple container that can holds object of any type.