Final Class Yiisoft\Cache\Exception\SetCacheException
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Psr\ |
Public Methods
Method Details
| public mixed __construct ( string $key, mixed $value, Yiisoft\ | ||
| $key | string | |
| $value | mixed | |
| $item | Yiisoft\ |
|
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\ |
public function getItem(): CacheItem
{
return $this->item;
}
Defined in:
Yiisoft\
| public string getKey ( ) |
public function getKey(): string
{
return $this->key;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.