system system.base system.caching system.caching.dependencies system.collections system.console system.db system.db.ar system.db.schema system.db.schema.cubrid system.db.schema.mssql system.db.schema.mysql system.db.schema.oci system.db.schema.pgsql system.db.schema.sqlite system.gii system.i18n system.i18n.gettext system.logging system.test system.utils system.validators system.web system.web.actions system.web.auth system.web.filters system.web.form system.web.helpers system.web.renderers system.web.services system.web.widgets system.web.widgets.captcha system.web.widgets.pagers zii.behaviors zii.widgets zii.widgets.grid zii.widgets.jui

ICacheDependency

system.caching
继承 interface ICacheDependency
子类 CCacheDependency, CChainedCacheDependency, CDbCacheDependency, CDirectoryCacheDependency, CExpressionDependency, CFileCacheDependency, CGlobalStateCacheDependency
可用自 1.0
源码 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.

公共方法

隐藏继承的方法

方法描述被定义在
evaluateDependency() Evaluates the dependency by generating and saving the data related with dependency. ICacheDependency
getHasChanged() Returns whether the dependency has changed. ICacheDependency

方法详情

evaluateDependency() 方法
abstract public void evaluateDependency()
源码: framework/base/interfaces.php#116 (显示)
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() 方法
abstract public boolean getHasChanged()
{return} boolean whether the dependency has changed.
源码: framework/base/interfaces.php#120 (显示)
public function getHasChanged();