Leosac
0.8.0
Open Source Access Control
|
A simple, thread-local container to share various type of objects. More...
#include <ThreadLocalRegistry.hpp>
Public Types | |
enum | KeyType { DATABASE } |
using | UnderlyingRegistry = Registry< KeyType > |
Static Public Member Functions | |
template<typename T > | |
static T | get (const KeyType &key) |
template<typename T > | |
static void | set (const KeyType &key, const T &obj) |
template<typename T > | |
static void | set (const KeyType &key, const T &obj, const UnderlyingRegistry::Clock::time_point &expire_at) |
static void | erase (const KeyType &key) |
static bool | has (const KeyType &key) |
static void | purge () |
Static Private Attributes | |
static thread_local UnderlyingRegistry | registry_ |
A simple, thread-local container to share various type of objects.
Definition at line 35 of file ThreadLocalRegistry.hpp.
Definition at line 43 of file ThreadLocalRegistry.hpp.
Enumerator | |
---|---|
DATABASE |
Definition at line 38 of file ThreadLocalRegistry.hpp.
|
inlinestatic |
Definition at line 64 of file ThreadLocalRegistry.hpp.
|
inlinestatic |
Definition at line 46 of file ThreadLocalRegistry.hpp.
|
inlinestatic |
Definition at line 69 of file ThreadLocalRegistry.hpp.
|
inlinestatic |
Definition at line 74 of file ThreadLocalRegistry.hpp.
|
inlinestatic |
Definition at line 52 of file ThreadLocalRegistry.hpp.
|
inlinestatic |
Definition at line 58 of file ThreadLocalRegistry.hpp.
|
staticprivate |
Definition at line 80 of file ThreadLocalRegistry.hpp.