code: def cache_value(self, api_name, key, value):
          
          self._cache.setdefault(api_name, {})
          self._cache[api_name][key] = value
docs: Add the value of an API call to the cache.
  
          Args:
              api_name: a string name of the API. Keys and values are segmented by api_name.
              key: a string key for the specific call.
              value: the value of the call using the specific key