def _update_cache(self, value):
    self._last_value = value
    self._last_value_time = time.time()
def _update_cache(self, value):
    self._last_value = value
    self._last_value_time = time.time()