yii\caching\ExpressionDependency::generateDependencyData PHP Method

generateDependencyData() protected method

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
return mixed the data needed to determine if dependency has been changed.
    protected function generateDependencyData($cache)
    {
        return eval("return {$this->expression};");
    }
ExpressionDependency