Test if required item exists in the cache.

def has_item(self, url):
        """
        Test if required item exists in the cache.
        """

        _hash = self.build_hash(url)
        query = {'_id': _hash}
        doc = self.dbase.cache.find_one(query, {'id': 1})
        return doc is not None