protected function hasItem($key, $type)
	{
		if(array_key_exists($type, $this->storage) && array_key_exists($key, $this->storage[$type]))
		{
			return true;
		}

		return false;
	}
protected function hasItem($key, $type)
	{
		if(array_key_exists($type, $this->storage) && array_key_exists($key, $this->storage[$type]))
		{
			return true;
		}

		return false;
	}
protected function hasItem ( $ key , $ type ) { if ( array_key_exists ( $ type , $ this -> storage ) && array_key_exists ( $ key , $ this -> storage [ $ type ] ) ) { return true ; } return false ; }
Check if item exists in cache

@param  string  $key
@param  string  $type

@return boolean
Check if item exists in cache