PHP Classes

File: app/Config/Cache.php

Recommend this page to a friend!
  Classes of Steeven Lim   o2system   app/Config/Cache.php   Download  
File: app/Config/Cache.php
Role: Example script
Content type: text/plain
Description: Example script
Class: o2system
Start projects using the with O2System Framework
Author: By
Last change:
Date: 4 years ago
Size: 1,151 bytes
 

Contents

Class file image Download
<?php
/**
 * This file is part of the O2System PHP Framework package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @author Steeve Andrian Salim
 * @copyright Copyright (c) Steeve Andrian Salim
 */
// ------------------------------------------------------------------------

use O2System\Cache\DataStructures\Config;

// ------------------------------------------------------------------------

/**
 * Cache ItemPools Configuration
 *
 * Each offset representing the ItemPool configuration.
 *
 * @see https://github.com/o2system/cache/wiki
 *
 * @var \O2System\Cache\DataStructures\Config
 */
$cache = new Config(
    [
       
'default' => [
           
'adapter' => 'file',
        ],
       
'registry' => [
           
'adapter' => 'file',
           
'path' => PATH_CACHE . 'registry',
        ],
       
'output' => [
           
'adapter' => 'file',
           
'path' => PATH_CACHE . 'output',
        ],
       
'images' => [
           
'adapter' => 'file',
           
'path' => PATH_CACHE . 'images',
        ],
    ]
);