9#ifndef SQUID_SRC_AUTH_CREDENTIALSCACHE_H
10#define SQUID_SRC_AUTH_CREDENTIALSCACHE_H
16#include <unordered_map>
70 typedef std::unordered_map<SBuf, Auth::User::Pointer>
StoreType;
Cache of Auth::User credentials, keyed by Auth::User::userKey.
Auth::User::Pointer lookup(const SBuf &userKey) const
bool gcScheduled_
whether a cleanup (garbage collection) event has been scheduled
void cleanup()
cache garbage collection, removes timed-out entries
CredentialsCache & operator=(const CredentialsCache &)=delete
std::unordered_map< SBuf, Auth::User::Pointer > StoreType
key is User::userKey(), mapped value is User::Pointer
void doConfigChangeCleanup()
std::vector< Auth::User::Pointer > sortedUsersList() const
CredentialsCache(const CredentialsCache &)=delete
static void Cleanup(void *)
const char *const cacheCleanupEventName
~CredentialsCache()=default
void insert(const SBuf &userKey, const Auth::User::Pointer &anAuth_user)
add an user to the cache with the provided key
CBDATA_CLASS(CredentialsCache)