for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Cache\Exception;
use Yiisoft\Cache\Metadata\CacheItem;
final class SetCacheException extends CacheException
{
private CacheItem $item;
public function __construct(string $key, CacheItem $item)
$this->item = $item;
parent::__construct($key, 'Failed to store the value in the cache.');
}
public function getItem(): CacheItem
return $this->item;