extends abstract class Phalcon\Cache\Backend
implements Phalcon\Cache\BackendInterface
Source on GitHub
Allows to cache output fragments, PHP data or raw data to a redis backend This adapter uses the special redis key “_PHCR” to store all the keys internally used by the adapter
use Phalcon\Cache\Backend\Redis;
use Phalcon\Cache\Frontend\Data as FrontData;
// Cache data for 2 days
$frontCache = new FrontData([
'lifetime' => 172800
]);
// Create the Cache setting redis connection o