Sections

Class Phalcon\Cache\Frontend\Factory

extends abstract class Phalcon\Factory

implements Phalcon\FactoryInterface

Source on GitHub

Loads Frontend Cache Adapter class using ‘adapter’ option

<?php

use Phalcon\Cache\Frontend\Factory;

$options = [
    "lifetime" => 172800,
    "adapter"  => "data",
];
$frontendCache = Factory::load($options);

Methods

public static load (Phalcon\Config array $config)

protected static loadClass (mixed $namespace, mixed $config)