rector/packages/Caching/Contract/ValueObject/Storage/CacheStorageInterface.php
2021-08-02 19:24:42 +00:00

27 lines
574 B
PHP

<?php
declare(strict_types=1);
namespace Rector\Caching\Contract\ValueObject\Storage;
/**
* inspired by https://github.com/phpstan/phpstan-src/blob/560652088406d7461c2c4ad4897784e33f8ab312/src/Cache/CacheStorage.php
* @internal
*/
interface CacheStorageInterface
{
/**
* @return mixed|null
*/
public function load(string $key, string $variableKey);
/**
* @param mixed $data
*/
public function save(string $key, string $variableKey, $data): void;
public function clean(string $key): void;
public function clear(): void;
}