39 lines
919 B
PHP
39 lines
919 B
PHP
<?php
|
|
|
|
namespace alveolata\cache;
|
|
|
|
// require_once(DIR_ALVEOLATA . '/definitions.php');
|
|
require_once(DIR_ALVEOLATA . '/cache/implementation-none/functions.php');
|
|
require_once(DIR_ALVEOLATA . '/cache/abstract/interface.php');
|
|
|
|
|
|
/**
|
|
* @author Christian Fraß <frass@greenscale.de>
|
|
*/
|
|
class implementation_none implements interface_cache
|
|
{
|
|
|
|
/**
|
|
* @author Christian Fraß <frass@greenscale.de>
|
|
*/
|
|
private function __construct() {}
|
|
|
|
|
|
/**
|
|
* @author Christian Fraß <frass@greenscale.de>
|
|
*/
|
|
public static function make() : implementation_none {return (new static());}
|
|
|
|
|
|
/**
|
|
* @implementations
|
|
*
|
|
* @author Christian Fraß <frass@greenscale.de>
|
|
*/
|
|
public function set(string $id, $value) : void {none_set($id, $value);}
|
|
public function has(string $id) : bool {return none_has($id);}
|
|
public function fetch(string $id) {return none_fetch($id);}
|
|
public function clear() : void {none_clear();}
|
|
|
|
}
|
|
|