mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
32 lines
460 B
PHP
32 lines
460 B
PHP
|
<?php
|
||
|
|
||
|
namespace SilverStripe\Core\Manifest;
|
||
|
|
||
|
/**
|
||
|
* Stores manifest data in APC.
|
||
|
* Note: benchmarks seem to indicate this is not particularly faster than _File
|
||
|
*/
|
||
|
class ManifestCache_APC implements ManifestCache
|
||
|
{
|
||
|
protected $pre;
|
||
|
|
||
|
function __construct($name)
|
||
|
{
|
||
|
$this->pre = $name;
|
||
|
}
|
||
|
|
||
|
function load($key)
|
||
|
{
|
||
|
return apc_fetch($this->pre . $key);
|
||
|
}
|
||
|
|
||
|
function save($data, $key)
|
||
|
{
|
||
|
apc_store($this->pre . $key, $data);
|
||
|
}
|
||
|
|
||
|
function clear()
|
||
|
{
|
||
|
}
|
||
|
}
|