datas[$key] = $value; return $this; } /** * * @param string $key * @return mixed */ public function get($key) { if (!isset($this->datas[$key])) throw new Exception('Unable to retrieve the value'); return $this->datas[$key]; } /** * * @param string $key * @return cache_nocache */ public function delete($key) { if (isset($this->datas[$key])) unset($this->datas[$key]); return $this; } /** * * @param array $array_keys * @return cache_nocache */ public function deleteMulti(Array $array_keys) { foreach ($array_keys as $key) $this->delete($key); return $this; } /** * * @return array */ public function getStats() { return array(); } /** * * @return cache_nocache */ public function flush() { $this->datas = array(); return $this; } /** * * @return string */ public function get_version() { return ''; } /** * * @return boolean */ public function ping() { return true; } }