/var/www/vhosts/ihelp.ro/httpdocs/vendor/google/auth/src
NameSizeModeActions
Cache/-0755rm
Credentials/-0755rm
HttpHandler/-0755rm
Middleware/-0755rm
AccessToken.php183120644editdlrm
ApplicationDefaultCredentials.php137560644editdlrm
CacheTrait.php26090644editdlrm
CredentialsLoader.php103080644editdlrm
FetchAuthTokenCache.php89160644editdlrm
FetchAuthTokenInterface.php16670644editdlrm
GCECache.php23610644editdlrm
GetQuotaProjectInterface.php9470644editdlrm
Iam.php31510644editdlrm
IamSignerTrait.php22740644editdlrm
OAuth2.php442450644editdlrm
ProjectIdProviderInterface.php9620644editdlrm
ServiceAccountSignerTrait.php18460644editdlrm
SignBlobInterface.php15310644editdlrm
UpdateMetadataInterface.php12450644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/google/auth/src/CacheTrait.php (2609B)
*/ private $cacheConfig; /** * @var ?CacheItemPoolInterface */ private $cache; /** * Gets the cached value if it is present in the cache when that is * available. * * @param mixed $k * * @return mixed */ private function getCachedValue($k) { if (is_null($this->cache)) { return null; } $key = $this->getFullCacheKey($k); if (is_null($key)) { return null; } $cacheItem = $this->cache->getItem($key); if ($cacheItem->isHit()) { return $cacheItem->get(); } } /** * Saves the value in the cache when that is available. * * @param mixed $k * @param mixed $v * @return mixed */ private function setCachedValue($k, $v) { if (is_null($this->cache)) { return null; } $key = $this->getFullCacheKey($k); if (is_null($key)) { return null; } $cacheItem = $this->cache->getItem($key); $cacheItem->set($v); $cacheItem->expiresAfter($this->cacheConfig['lifetime']); return $this->cache->save($cacheItem); } /** * @param null|string $key * @return null|string */ private function getFullCacheKey($key) { if (is_null($key)) { return null; } $key = $this->cacheConfig['prefix'] . $key; // ensure we do not have illegal characters $key = preg_replace('|[^a-zA-Z0-9_\.!]|', '', $key); // Hash keys if they exceed $maxKeyLength (defaults to 64) if ($this->maxKeyLength && strlen($key) > $this->maxKeyLength) { $key = substr(hash('sha256', $key), 0, $this->maxKeyLength); } return $key; } }