def evict(self, urls):
        """Remove items from cache matching URLs.

        Return the number of items removed.
        """
        if isinstance(urls, six.text_type):
            urls = [urls]
        urls = set(normalize_url(url) for url in urls)
        retval = 0
        for key in list(self.cache):
            if key[0] in urls:
                retval += 1
                del self.cache[key]
                del self.timeouts[key]
        return retval
Remove items from cache matching URLs.

        Return the number of items removed.
        
rtv/content.py