CredentialsCache.h
Go to the documentation of this file.
Cache of Auth::User credentials, keyed by Auth::User::userKey.
Definition: CredentialsCache.h:22
Auth::User::Pointer lookup(const SBuf &userKey) const
Definition: CredentialsCache.cc:65
bool gcScheduled_
whether a cleanup (garbage collection) event has been scheduled
Definition: CredentialsCache.h:67
CredentialsCache & operator=(const CredentialsCache &)=delete
std::unordered_map< SBuf, Auth::User::Pointer > StoreType
key is User::userKey(), mapped value is User::Pointer
Definition: CredentialsCache.h:70
void doConfigChangeCleanup()
Definition: CredentialsCache.cc:140
std::vector< Auth::User::Pointer > sortedUsersList() const
Definition: CredentialsCache.cc:115
CredentialsCache(const CredentialsCache &)=delete
CredentialsCache(const char *name, const char *const eventName)
Definition: CredentialsCache.cc:56
void insert(const SBuf &userKey, Auth::User::Pointer anAuth_user)
add an user to the cache with the provided key
Definition: CredentialsCache.cc:105
const char *const cacheCleanupEventName
Definition: CredentialsCache.h:74
~CredentialsCache()=default
CBDATA_CLASS(CredentialsCache)