code: def _set_cached_value(self, xblock, value):
          
          # pylint: disable=protected-access
          if not hasattr(xblock, '_field_data_cache'):
              xblock._field_data_cache = {}
          xblock._field_data_cache[self.name] = value
docs: Store a value in the xblock's cache, creating the cache if necessary.