implements Phalcon\Cache\FrontendInterface
Source on GitHub
Allows to cache data converting/deconverting them to base64. This adapter uses the base64_encode/base64_decode PHP’s functions
<?php
// Cache the files for 2 days using a Base64 frontend
$frontCache = new \Phalcon\Cache\Frontend\Base64(array(
"lifetime" => 172800
));
//Create a MongoDB cache
$cache = new \Phalcon\Cache\Backend\Mongo($frontCache, array(
'server' => "mongodb://localhost",
'db' => 'caches'