code: def evict(cls, urls):
          
          if isinstance(urls, text_type):
              urls = [urls]
          urls = set(normalize_url(url) for url in urls)
          retval = 0
          with cls.ca_lock:
              for key in list(cls.cache):
                  if key[0] in urls:
                      retval += 1
                      del cls.cache[key]
                      del cls.timeouts[key]
          return retval
docs: Remove items from cache matching URLs.
  
          Return the number of items removed.