Sections

Class Phalcon\Cache\Backend\Factory

extends abstract class Phalcon\Factory

implements Phalcon\FactoryInterface

Source on GitHub

Loads Backend Cache Adapter class using ‘adapter’ option, if frontend will be provided as array it will call Frontend Cache Factory

<?php

use Phalcon\Cache\Backend\Factory;
use Phalcon\Cache\Frontend\Data;

$options = [
    "prefix"   => "app-data",
    "frontend" => new Data(),
    "adapter"  => "apc",
];
$backendCache = Factory::load($options);

Methods

public static load (Phalcon\Config array $config)

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