mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
8dd644d25d
Namespace all templates Move difflib and BBCodeParser2 to thirdparty Remove deprecated API marked for removal in 4.0
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()
|
|
{
|
|
}
|
|
}
|