storage[$key] = $value; } /** * Retrieve an item from the cache by key * * @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]); } }