def __contains__(self, key):
        try:
            item = collections.OrderedDict.__getitem__(self, key.casefold())
            if time.time() - item[1] < self.max_age:
                return True
            else:
                del self[key.casefold()]
        except KeyError:
            pass
        return False
dataset/ETHPy150Open mammon-ircd/mammon/mammon/utility.py/ExpiringDict.__contains__/original