"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Cache/Cache.php" between
cakephp-4.2.2.tar.gz and cakephp-4.2.3.tar.gz

About: CakePHP is a rapid development framework for PHP applications. Source code.

Cache.php  (cakephp-4.2.2):Cache.php  (cakephp-4.2.3)
skipping to change at line 573 skipping to change at line 573
* When called if the $key is not set in $config, the $callable function * When called if the $key is not set in $config, the $callable function
* will be invoked. The results will then be stored into the cache config * will be invoked. The results will then be stored into the cache config
* at key. * at key.
* *
* Examples: * Examples:
* *
* Using a Closure to provide data, assume `$this` is a Table object: * Using a Closure to provide data, assume `$this` is a Table object:
* *
* ``` * ```
* $results = Cache::remember('all_articles', function () { * $results = Cache::remember('all_articles', function () {
* return $this->find('all'); * return $this->find('all')->toArray();
* }); * });
* ``` * ```
* *
* @param string $key The cache key to read/store data at. * @param string $key The cache key to read/store data at.
* @param callable $callable The callable that provides data in the case whe n * @param callable $callable The callable that provides data in the case whe n
* the cache key is empty. Can be any callable type supported by your PHP. * the cache key is empty. Can be any callable type supported by your PHP.
* @param string $config The cache configuration to use for this operation. * @param string $config The cache configuration to use for this operation.
* Defaults to default. * Defaults to default.
* @return mixed If the key is found: the cached data, false if the data * @return mixed If the key is found: the cached data, false if the data
* missing/expired, or an error. If the key is not found: boolean of the * missing/expired, or an error. If the key is not found: boolean of the
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)