Data Caching

7 мес. 3 нед. назад #6550 от admin
admin создал тему: Data Caching
// try retrieving $data from cache
$data = $cache->get($key);

if ($data...

Data Caching

Data caching is about storing some PHP variables in cache and retrieving it later from cache. It is also the foundation for more advanced caching features, such as query caching and page caching.

The following code is a typical usage pattern of data caching, where $cache refers to a cache component: