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
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

Hide inherited methods

MethodDescriptionDefined 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();

Be the first person to leave a comment

Please to leave your comment.