/home/techb158/ileadtechnology.com/vendor/ankitpokhrel/tus-php/src/Cache
NameSizeModeActions
AbstractCache.php13210644editdlrm
ApcuStore.php16940644editdlrm
Cacheable.php14010644editdlrm
CacheFactory.php4550644editdlrm
FileStore.php66920644editdlrm
RedisStore.php21060644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/ankitpokhrel/tus-php/src/Cache/ApcuStore.php (1694B)
getActualCacheKey($key)); if ( ! $contents) { return null; } if ($withExpired) { return $contents ?: null; } $isExpired = Carbon::parse($contents['expires_at'])->lt(Carbon::now()); return $isExpired ? null : $contents; } /** * {@inheritDoc} */ public function set(string $key, $value) { $contents = $this->get($key) ?? []; if (\is_array($value)) { $contents = $value + $contents; } else { $contents[] = $value; } return apcu_store($this->getActualCacheKey($key), $contents, $this->getTtl()); } /** * {@inheritDoc} */ public function delete(string $key): bool { return true === apcu_delete($this->getActualCacheKey($key)); } /** * {@inheritDoc} */ public function keys(): array { $iterator = new APCUIterator('/^' . preg_quote($this->getPrefix()) . '.*$/', APC_ITER_KEY); return array_column(iterator_to_array($iterator, false), 'key'); } /** * Get actual cache key with prefix. * * @param string $key * * @return string */ protected function getActualCacheKey(string $key): string { $prefix = $this->getPrefix(); if (false === strpos($key, $prefix)) { $key = $prefix . $key; } return $key; } }