<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Cache\Traits; use Symfony\Component\Cache\PruneableInterface; use Symfony\Contracts\Service\ResetInterface; /** * @author Nicolas Grekas <p@tchwork.com> * * @internal */ trait ProxyTrait { private object $pool; public function prune(): bool { return $this->pool instanceof PruneableInterface && $this->pool->prune(); } public function reset() { if ($this->pool instanceof ResetInterface) { $this->pool->reset(); } } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
AbstractAdapterTrait.php | File | 11.91 KB | 0644 |
|
ContractsTrait.php | File | 4 KB | 0644 |
|
FilesystemCommonTrait.php | File | 5.35 KB | 0644 |
|
FilesystemTrait.php | File | 2.9 KB | 0644 |
|
ProxyTrait.php | File | 756 B | 0644 |
|
Redis5Proxy.php | File | 45.53 KB | 0644 |
|
Redis6Proxy.php | File | 52.78 KB | 0644 |
|
RedisCluster5Proxy.php | File | 36.71 KB | 0644 |
|
RedisCluster6Proxy.php | File | 48 KB | 0644 |
|
RedisClusterNodeProxy.php | File | 1.21 KB | 0644 |
|
RedisClusterProxy.php | File | 523 B | 0644 |
|
RedisProxy.php | File | 488 B | 0644 |
|
RedisTrait.php | File | 25.02 KB | 0644 |
|
ValueWrapper.php | File | 2.05 KB | 0644 |
|