'Return true if the expiration time is reached, or no
value is available.'

def _is_expired(self, createdtime):

    return ((not self._has_value(createdtime)) or ((self.expiretime is not None) and ((time.time() - createdtime) > self.expiretime)))
