<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set(self, name, value):
 """Set the cached value for the given name"""

        old_val = self.values.get(name)
        if old_val != value:
            self.values[name] = value
            return True
        else:
            return False