Class CGlobalStateCacheDependency
CGlobalStateCacheDependency represents a dependency based on a global state value.
CGlobalStateCacheDependency checks if a global state is changed or not. If
the global state is changed, the dependency is reported as changed. To specify
which global state this dependency should check with, set CGlobalStateCacheDependency::$stateName
to
the name of the global state.
- CComponent
- CCacheDependency implements ICacheDependency
- CGlobalStateCacheDependency
Package: system\caching\dependencies
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/caching/dependencies/CGlobalStateCacheDependency.php
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/caching/dependencies/CGlobalStateCacheDependency.php
public
|
|
protected
mixed
|
#
generateDependentData( )
Generates the data needed to determine if dependency has been changed. This method returns the value of the global state. |
evaluateDependency(),
getDependentData(),
getHasChanged(),
resetReusableData()
|
public
string
|
$stateName |
|
#
the name of the global state whose value is to check if the dependency has changed. |
$reuseDependentData
|
$dependentData,
$hasChanged
|