storage[$key] = $value; } /** * Fetch value from cache * * @access public * @param string $key * @return mixed Null when not found, cached value otherwise */ public function get($key) { return isset($this->storage[$key]) ? $this->storage[$key] : null; } /** * Clear all cache * * @access public */ public function flush() { $this->storage = array(); } /** * Remove cached value * * @access public * @param string $key */ public function remove($key) { unset($this->storage[$key]); } }