Versions
Look up a class, method, property or event

ICacheDependency

Package system.caching
Inheritance interface ICacheDependency
Subclasses CCacheDependency, CChainedCacheDependency, CDbCacheDependency, CDirectoryCacheDependency, CExpressionDependency, CFileCacheDependency, CGlobalStateCacheDependency
Since 1.0
Version $Id: interfaces.php 1290 2009-08-06 16:13:11Z qiang.xue $
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

Hide inherited methods

MethodDescriptionDefined By
evaluateDependency() Evaluates the dependency by generating and saving the data related with dependency. ICacheDependency
getHasChanged() ICacheDependency

Method Details

evaluateDependency() method
abstract public void 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.

Be the first person to leave a comment

Please to leave your comment.