0 follower

Final Class Yiisoft\Cache\Exception\SetCacheException

InheritanceYiisoft\Cache\Exception\SetCacheException » Yiisoft\Cache\Exception\CacheException » RuntimeException
ImplementsPsr\SimpleCache\CacheException

Method Details

Hide inherited methods

__construct() public method

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.');
}

            
getItem() public method

public Yiisoft\Cache\Metadata\CacheItem getItem ( )

                public function getItem(): CacheItem
{
    return $this->item;
}

            
getKey() public method
public string getKey ( )

                public function getKey(): string
{
    return $this->key;
}

            
getValue() public method

public mixed getValue ( )

                public function getValue(): mixed
{
    return $this->value;
}