yii\caching\Cache::setValue PHP Метод

setValue() абстрактный защищенный Метод

This method should be implemented by child classes to store the data in specific cache storage.
abstract protected setValue ( string $key, mixed $value, integer $duration ) : boolean
$key string the key identifying the value to be cached
$value mixed the value to be cached. Most often it's a string. If you have disabled [[serializer]], it could be something else.
$duration integer the number of seconds in which the cached value will expire. 0 means never expire.
Результат boolean true if the value is successfully stored into cache, false otherwise
    protected abstract function setValue($key, $value, $duration);