* @license GPLv2 * */ /** * Class common_persistence_NoStorageKvDriver * @deprecated use \common_persistence_InMemoryKvDriver instead * @author Aleh Hutnikau, */ class common_persistence_NoStorageKvDriver implements common_persistence_KvDriver, common_persistence_Purgable { /** * * @see common_persistence_Driver::connect() */ function connect($id, array $params) { return new common_persistence_KeyValuePersistence($params, $this); } /** * * @see common_persistence_KvDriver::set() */ public function set($id, $value, $ttl = null, $nx = false) { return false; } /** * * @see common_persistence_KvDriver::get() */ public function get($id) { return false; } /** * * @see common_persistence_KvDriver::exists() */ public function exists($id) { return false; } /** * * @see common_persistence_KvDriver::del() */ public function del($id) { return true; } /** * Increment existing value * @param string $id * @return mixed */ public function incr($id) { return false; } /** * Decrement existing value * @param $id * @return mixed */ public function decr($id) { return false; } /** * * @see common_persistence_Purgable::purge() */ public function purge() { return true; } }