Final Class Yiisoft\Cache\Exception\SetCacheException
| Inheritance | Yiisoft\Cache\Exception\SetCacheException » Yiisoft\Cache\Exception\CacheException » RuntimeException |
|---|---|
| Implements | Psr\SimpleCache\CacheException |
Public Methods
Method Details
| public mixed __construct ( string $key, mixed $value, Yiisoft\Cache\Metadata\CacheItem $item ) | ||
| $key | string | |
| $value | mixed | |
| $item | Yiisoft\Cache\Metadata\CacheItem | |
public function __construct(
string $key,
private readonly mixed $value,
private readonly CacheItem $item
) {
parent::__construct($key, 'Failed to store the value in the cache.');
}
| public Yiisoft\Cache\Metadata\CacheItem getItem ( ) |
public function getItem(): CacheItem
{
return $this->item;
}
Defined in: Yiisoft\Cache\Exception\CacheException::getKey()
| public string getKey ( ) |
public function getKey(): string
{
return $this->key;
}
Signup or Login in order to comment.