Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/flow-flo.../libs/cakephp/cache
File: README.md
# CakePHP Caching Library
[0] Fix | Delete
[1] Fix | Delete
The Cache library provides a `Cache` service locator for interfacing with multiple caching backends using
[2] Fix | Delete
a simple to use interface.
[3] Fix | Delete
[4] Fix | Delete
The caching backends supported are:
[5] Fix | Delete
[6] Fix | Delete
* Files
[7] Fix | Delete
* APC
[8] Fix | Delete
* Memcached
[9] Fix | Delete
* Redis
[10] Fix | Delete
* Wincache
[11] Fix | Delete
* Xcache
[12] Fix | Delete
[13] Fix | Delete
## Usage
[14] Fix | Delete
[15] Fix | Delete
Caching engines need to be configured with the `Cache::config()` method.
[16] Fix | Delete
[17] Fix | Delete
```php
[18] Fix | Delete
use Cake\Cache\Cache;
[19] Fix | Delete
[20] Fix | Delete
// Using a short name
[21] Fix | Delete
Cache::config('default', [
[22] Fix | Delete
'className' => 'File',
[23] Fix | Delete
'duration' => '+1 hours',
[24] Fix | Delete
'path' => sys_get_tmp_dir(),
[25] Fix | Delete
'prefix' => 'my_app_'
[26] Fix | Delete
]);
[27] Fix | Delete
[28] Fix | Delete
// Using a fully namespaced name.
[29] Fix | Delete
Cache::config('long', [
[30] Fix | Delete
'className' => 'Cake\Cache\Engine\ApcuEngine',
[31] Fix | Delete
'duration' => '+1 week',
[32] Fix | Delete
'prefix' => 'my_app_'
[33] Fix | Delete
]);
[34] Fix | Delete
[35] Fix | Delete
// Using a constructed object.
[36] Fix | Delete
$object = new FileEngine($config);
[37] Fix | Delete
Cache::config('other', $object);
[38] Fix | Delete
```
[39] Fix | Delete
[40] Fix | Delete
You can now read a write from the cache:
[41] Fix | Delete
[42] Fix | Delete
```php
[43] Fix | Delete
$data = Cache::remember('my_cache_key', function () {
[44] Fix | Delete
return Service::expensiveCall();
[45] Fix | Delete
});
[46] Fix | Delete
```
[47] Fix | Delete
[48] Fix | Delete
The code above will try to look for data stored in cache under the `my_cache_key`, if not found
[49] Fix | Delete
the callback will be executed and the returned data will be cached for future calls.
[50] Fix | Delete
[51] Fix | Delete
## Documentation
[52] Fix | Delete
[53] Fix | Delete
Please make sure you check the [official documentation](https://book.cakephp.org/3/en/core-libraries/caching.html)
[54] Fix | Delete
[55] Fix | Delete
[56] Fix | Delete
[57] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function