文件操作 - Cache.php
返回文件管理
返回主菜单
删除本文件
文件: /opt/cpanel/ea-wappspector/vendor/rector/rector/src/Caching/Cache.php
编辑文件内容
<?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); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件