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

@property
def is_expired(self):

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