| Server IP : 213.136.93.164 / Your IP : 216.73.216.104 Web Server : Apache System : Linux m14200.contabo.net 5.14.0-611.54.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed May 6 18:03:03 EDT 2026 x86_64 User : ki692510 ( 1047) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/root/opt/cpanel/ea-wappspector/vendor/rector/rector/src/Caching/ |
Upload File : |
<?php
declare (strict_types=1);
namespace Rector\Caching;
use Rector\Caching\Contract\ValueObject\Storage\CacheStorageInterface;
use Rector\Caching\Enum\CacheKey;
final class Cache
{
/**
* @readonly
* @var \Rector\Caching\Contract\ValueObject\Storage\CacheStorageInterface
*/
private $cacheStorage;
public function __construct(CacheStorageInterface $cacheStorage)
{
$this->cacheStorage = $cacheStorage;
}
/**
* @param CacheKey::* $variableKey
* @return mixed|null
*/
public function load(string $key, string $variableKey)
{
return $this->cacheStorage->load($key, $variableKey);
}
/**
* @param CacheKey::* $variableKey
* @param mixed $data
*/
public function save(string $key, string $variableKey, $data) : void
{
$this->cacheStorage->save($key, $variableKey, $data);
}
public function clear() : void
{
$this->cacheStorage->clear();
}
public function clean(string $cacheKey) : void
{
$this->cacheStorage->clean($cacheKey);
}
}