extends class Phalcon\Cache\Frontend\Data
implements Phalcon\Cache\FrontendInterface
Source on GitHub
Allows to cache native PHP data in a serialized form using msgpack extension This adapter uses a Msgpack frontend to store the cached content and requires msgpack extension.
use Phalcon\Cache\Backend\File;
use Phalcon\Cache\Frontend\Msgpack;
// Cache the files for 2 days using Msgpack frontend
$frontCache = new Msgpack([
'lifetime' => 172800
]);
// Create the component that will