code: def getCachedOrUpdatedValue(self, key, channel=None):
          
          if channel:
              return self._hmchannels[channel].getCachedOrUpdatedValue(key)
  
          try:
              return self._VALUES[key]
          except KeyError:
              value = self._VALUES[key] = self.getValue(key)
              return value
docs: Gets the channel's value with the given key.
  
          If the key is not found in the cache, the value is queried from the host.
          If 'channel' is given, the respective channel's value is returned.