<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_dev_cache(self, device, data):
 """Update cached values for a device."""

        self.update_cache(
            {
                CONST.DEVICES: {
                    device.device_id: data
                }
            })