yii\caching\ExpressionDependency::generateDependencyData PHP Метод

generateDependencyData() защищенный Метод

This method returns the result of the PHP expression.
protected generateDependencyData ( Cache $cache ) : mixed
$cache Cache the cache component that is currently evaluating this dependency
Результат mixed the data needed to determine if dependency has been changed.
    protected function generateDependencyData($cache)
    {
        return eval("return {$this->expression};");
    }
ExpressionDependency