PHP 클래스 yii\caching\ExpressionDependency

ExpressionDependency will use eval() to evaluate the PHP expression. The dependency is reported as unchanged if and only if the result of the expression is the same as the one evaluated when storing the data to cache. A PHP expression can be any PHP code that has a value. To learn more about what an expression is, please refer to the php manual. For more details and usage information on Cache, see the guide article on caching.
부터: 2.0
저자: Qiang Xue ([email protected])
상속: extends yii\caching\Dependency
파일 보기 프로젝트 열기: yiisoft/yii2

공개 프로퍼티들

프로퍼티 타입 설명
$expression the string representation of a PHP expression whose result is used to determine the dependency. A PHP expression can be any PHP code that evaluates to a value. To learn more about what an expression is, please refer to the php manual.
$params custom parameters associated with this dependency. You may get the value of this property in [[expression]] using $this->params.

보호된 메소드들

메소드 설명
generateDependencyData ( Cache $cache ) : mixed Generates the data needed to determine if dependency has been changed.

메소드 상세

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.

프로퍼티 상세

$expression 공개적으로 프로퍼티

the string representation of a PHP expression whose result is used to determine the dependency. A PHP expression can be any PHP code that evaluates to a value. To learn more about what an expression is, please refer to the php manual.
public $expression

$params 공개적으로 프로퍼티

custom parameters associated with this dependency. You may get the value of this property in [[expression]] using $this->params.
public $params