code: def _index_by_name(self, name):
          
          for i, t in enumerate(self._cache):
              if t[2] == name:
                  return i
              # END found item
          # END for each item in cache
          return -1
docs: :return: index of an item with name, or -1 if not found