| Name | Size | Mode | Actions |
|---|---|---|---|
| AbstractAdapter.php | 8327 | 0644 | editdlrm |
| AbstractTagAwareAdapter.php | 12537 | 0644 | editdlrm |
| AdapterInterface.php | 963 | 0644 | editdlrm |
| ApcuAdapter.php | 3959 | 0644 | editdlrm |
| ArrayAdapter.php | 11183 | 0644 | editdlrm |
| ChainAdapter.php | 8968 | 0644 | editdlrm |
| CouchbaseBucketAdapter.php | 7729 | 0644 | editdlrm |
| CouchbaseCollectionAdapter.php | 6705 | 0644 | editdlrm |
| DoctrineAdapter.php | 2845 | 0644 | editdlrm |
| DoctrineDbalAdapter.php | 15355 | 0644 | editdlrm |
| FilesystemAdapter.php | 933 | 0644 | editdlrm |
| FilesystemTagAwareAdapter.php | 7584 | 0644 | editdlrm |
| MemcachedAdapter.php | 13749 | 0644 | editdlrm |
| NullAdapter.php | 2657 | 0644 | editdlrm |
| ParameterNormalizer.php | 898 | 0644 | editdlrm |
| PdoAdapter.php | 20331 | 0644 | editdlrm |
| PhpArrayAdapter.php | 12537 | 0644 | editdlrm |
| PhpFilesAdapter.php | 10260 | 0644 | editdlrm |
| ProxyAdapter.php | 8469 | 0644 | editdlrm |
| Psr16Adapter.php | 1941 | 0644 | editdlrm |
| RedisAdapter.php | 1200 | 0644 | editdlrm |
| RedisTagAwareAdapter.php | 12218 | 0644 | editdlrm |
| TagAwareAdapter.php | 11387 | 0644 | editdlrm |
| TagAwareAdapterInterface.php | 775 | 0644 | editdlrm |
| TraceableAdapter.php | 6931 | 0644 | editdlrm |
| TraceableTagAwareAdapter.php | 932 | 0644 | editdlrm |
/usr/share/php/Symfony/Component/Cache/Adapter/Psr16Adapter.php (1941B)
*/ class Psr16Adapter extends AbstractAdapter implements PruneableInterface, ResettableInterface { use ProxyTrait; /** * @internal */ protected const NS_SEPARATOR = '_'; private $miss; public function __construct(CacheInterface $pool, string $namespace = '', int $defaultLifetime = 0) { parent::__construct($namespace, $defaultLifetime); $this->pool = $pool; $this->miss = new \stdClass(); } /** * {@inheritdoc} */ protected function doFetch(array $ids): iterable { foreach ($this->pool->getMultiple($ids, $this->miss) as $key => $value) { if ($this->miss !== $value) { yield $key => $value; } } } /** * {@inheritdoc} */ protected function doHave(string $id): bool { return $this->pool->has($id); } /** * {@inheritdoc} */ protected function doClear(string $namespace): bool { return $this->pool->clear(); } /** * {@inheritdoc} */ protected function doDelete(array $ids): bool { return $this->pool->deleteMultiple($ids); } /** * {@inheritdoc} */ protected function doSave(array $values, int $lifetime): array|bool { return $this->pool->setMultiple($values, 0 === $lifetime ? null : $lifetime); } }