caching\DummyCache getValue()

getValue() protected method Retrieves a value from cache with a specified key. This is the implementation of the method declared in the parent class. protected mixed|false getValue ( $key )$key string A unique key identifying the cached value return mixed|false The value stored in cache, false if the value is not in the cache or expired.

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 resetReusableData()

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

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 $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 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 $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\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\DbDependency $db

$db public property The application component ID of the DB connection. public string $db = 'db'