Class CCacheDependency
CCacheDependency is the base class for cache dependency classes.
CCacheDependency implements the ICacheDependency
interface. Child
classes should override its CCacheDependency::generateDependentData()
for actual dependency
checking.
- CComponent
- CCacheDependency implements ICacheDependency
Direct known subclasses
CDbCacheDependency, CDirectoryCacheDependency, CExpressionDependency, CFileCacheDependency, CGlobalStateCacheDependencyCopyright: 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/CCacheDependency.php
public
|
#
evaluateDependency( )
Evaluates the dependency by generating and saving the data related with dependency. This method is invoked by cache before writing data into it. |
public
boolean
|
|
public
mixed
|
|
public static
|
|
protected
mixed
|
#
generateDependentData( )
Generates the data needed to determine if dependency has been changed. Derived classes should override this method to generate actual dependent data. |
public
boolean
|
$reuseDependentData | false |
#
Whether this dependency is reusable or not. If set to true, dependent data for this cache dependency will only be generated once per request. You can then use the same cache dependency for multiple separate cache calls on the same page without the overhead of re-evaluating the dependency each time. Defaults to false; |
public
boolean
|
$hasChanged |
#
Whether the dependency has changed. |
public
mixed
|
$dependentData |
#
The data used to determine if dependency has been changed. This data is
available after |