24 #include <boost/any.hpp> 43 std::lock_guard<std::mutex> lg(
mutex_);
48 static void set(
const KeyType &key,
const T &obj)
50 std::lock_guard<std::mutex> lg(
mutex_);
55 static void set(
const KeyType &key,
const T &obj,
56 const std::chrono::steady_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.
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.
static void erase(const KeyType &key)
std::chrono::steady_clock Clock
static UnderlyingRegistry registry_
A simple container that can holds object of any type.
UnderlyingRegistry::Clock Clock
static bool has(const KeyType &key)
An application wide registry that can store objects of any type.