ICacheDependency

Package system.caching
Inheritance interface ICacheDependency
Subclasses CCacheDependency, CChainedCacheDependency, CDbCacheDependency, CDirectoryCacheDependency, CExpressionDependency, CFileCacheDependency, CGlobalStateCacheDependency
Since 1.0
Source Code framework/base/interfaces.php
ICacheDependency is the interface that must be implemented by cache dependency classes.

This interface must be implemented by classes meant to be used as cache dependencies.

Objects implementing this interface must be able to be serialized and unserialized.

Public Methods

Method Description Defined By
evaluateDependency() Evaluates the dependency by generating and saving the data related with dependency. ICacheDependency
getHasChanged() Returns whether the dependency has changed. ICacheDependency

Method Details

evaluateDependency() method

abstract public void evaluateDependency()
Source Code: framework/base/interfaces.php#116 (show)
public function evaluateDependency();

Evaluates the dependency by generating and saving the data related with dependency. This method is invoked by cache before writing data into it.

getHasChanged() method

abstract public boolean getHasChanged()
{return} boolean whether the dependency has changed.
Source Code: framework/base/interfaces.php#120 (show)
public function getHasChanged();

© 2008–2017 by Yii Software LLC
Licensed under the three clause BSD license.
http://www.yiiframework.com/doc/api/1.1/ICacheDependency