spip_nursit/plugins-dist/dist/nursit/memoization/memo/nocache.inc

59 lines
834 B
PHP
Raw Normal View History

2023-06-01 15:30:12 +00:00
<?php
/**
* Implementation methode Memoization
*
* @package SPIP\memoization\Memo
**/
// Sécurité
if (!defined('_ECRIRE_INC_VERSION')){
return;
}
class MCacheBackend_nocache implements MCacheBackend {
public function init($params = null){
}
public function get($key){
return null;
}
public function set($key, $value, $ttl = null){
return null;
}
public function exists($key){
return null;
}
public function del($key){
return null;
}
public function inc($key, $value = null, $ttl = null){
return null;
}
public function dec($key, $value = null, $ttl = null){
return null;
}
public function lock($key, /* private */ $unlock = false){
return null;
}
public function unlock($key){
return null;
}
public function size(){
return 0;
}
public function purge(){
return false;
}
}