caching\DummyCache deleteValue()

deleteValue() protected method Deletes a value with the specified key from cache This is the implementation of the method declared in the parent class. protected boolean deleteValue ( $key )$key string The key of the value to be deleted return boolean If no error happens during deletion

caching\DummyCache addValue()

addValue() protected method Stores a value identified by a key into cache if the cache does not contain this key. This is the implementation of the method declared in the parent class. protected boolean addValue ( $key, $value, $duration )$key string The key identifying the value to be cached $value mixed The value to be cached $duration integer The number of seconds in which the cached value will expire. 0 means never expire. return boolean True if the value is successfully stored

caching\Dependency resetReusableData()

resetReusableData() public static method Resets all cached data for reusable dependencies. public static void resetReusableData ( )

caching\Dependency getHasChanged()

getHasChanged() public method Returns a value indicating whether the dependency has changed. public boolean getHasChanged ( $cache )$cache yii\caching\Cache The cache component that is currently evaluating this dependency return boolean Whether the dependency has changed.

caching\Dependency generateReusableHash()

generateReusableHash() protected method Generates a unique hash that can be used for retrieving reusable dependency data. See also $reusable. protected string generateReusableHash ( )return string A unique hash value for this cache dependency.

caching\Dependency generateDependencyData()

generateDependencyData() protected abstract method Generates the data needed to determine if dependency has been changed. Derived classes should override this method to generate the actual dependency data. protected abstract mixed generateDependencyData ( $cache )$cache yii\caching\Cache The cache component that is currently evaluating this dependency return mixed The data needed to determine if dependency has been changed.

caching\Dependency evaluateDependency()

evaluateDependency() public method Evaluates the dependency by generating and saving the data related with dependency. This method is invoked by cache before writing data into it. public void evaluateDependency ( $cache )$cache yii\caching\Cache The cache component that is currently evaluating this dependency

caching\Dependency $reusable

$reusable public property Whether this dependency is reusable or not. True value means that dependent data for this cache dependency will be generated only once per request. This allows you to use the same cache dependency for multiple separate cache calls while generating the same page without an overhead of re-evaluating dependency data each time. Defaults to false. public boolean $reusable = false

caching\Dependency $data

$data public property The dependency data that is saved in cache and later is compared with the latest dependency data. public mixed $data = null

caching\DbDependency generateDependencyData()

generateDependencyData() protected method Generates the data needed to determine if dependency has been changed. This method returns the value of the global state. protected mixed generateDependencyData ( $cache )$cache yii\caching\Cache The cache component that is currently evaluating this dependency return mixed The data needed to determine if dependency has been changed. throws yii\base\InvalidConfigException if $db is not a valid application component ID