'Check timestamp for a key'

def _check_age(self, key):

    if (key not in self.values):
        return
    now = time.monotonic()
    timestamp = self.timestamps[key]
    if ((self.max_age > 0) and ((timestamp + self.max_age) < now)):
        self.values.pop(key)
        self.timestamps.pop(key)
