CredentialsCache.cc
Go to the documentation of this file.
bool RegisterRunner(RegisteredRunner *rr)
registers a given runner with the given registry and returns true on success
Definition: RunnersRegistry.cc:49
Definition: CredentialsCache.cc:22
void endingShutdown() override
Definition: CredentialsCache.cc:36
CbcPointer< CredentialsCache > whichCache
reference to the scheme cache which is being managed
Definition: CredentialsCache.cc:51
~CredentialCacheRr() override
Definition: CredentialsCache.cc:29
CredentialCacheRr(const char *n, CredentialsCache *const c)
Definition: CredentialsCache.cc:24
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
void doConfigChangeCleanup()
Definition: CredentialsCache.cc:140
std::vector< Auth::User::Pointer > sortedUsersList() const
Definition: CredentialsCache.cc:115
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
Definition: CbcPointer.h:26
Definition: RunnersRegistry.h:38
void eventAdd(const char *name, EVH *func, void *arg, double when, int weight, bool cbdata)
Definition: event.cc:107
CBDATA_CLASS_INIT(CredentialsCache)
struct timeval current_time
the current UNIX time in timeval {seconds, microseconds} format
Definition: gadgets.cc:17