parameters: (self, serializer_name)
docstring: Set the default cache serialization format.
  
          .. versionadded:: 1.8
  
          This serializer is used by :meth:`store_data()` and
          :meth:`stored_data()`
  
          The specified serializer must already by registered with the
          :class:`SerializerManager` at `~workflow.workflow.manager`,
          otherwise a :class:`ValueError` will be raised.
  
          :param serializer_name: Name of serializer to use by default.
docstring_summary: Set the default cache serialization format.
docstring_tokens: Set the default cache serialization format .
function: def data_serializer(self, serializer_name):
          """Set the default cache serialization format.
  
          .. versionadded:: 1.8
  
          This serializer is used by :meth:`store_data()` and
          :meth:`stored_data()`
  
          The specified serializer must already by registered with the
          :class:`SerializerManager` at `~workflow.workflow.manager`,
          otherwise a :class:`ValueError` will be raised.
  
          :param serializer_name: Name of serializer to use by default.
  
          """
          if manager.serializer(serializer_name) is None:
              raise ValueError(
                  'Unknown serializer : `{0}`. Register your serializer '
                  'with `manager` first.'.format(serializer_name))
  
          self.logger.debug('default data serializer: %s', serializer_name)
  
          self._data_serializer = serializer_name
function_tokens: def data_serializer ( self , serializer_name ) : if manager . serializer ( serializer_name ) is None : raise ValueError ( 'Unknown serializer : `{0}`. Register your serializer ' 'with `manager` first.' . format ( serializer_name ) ) self . logger . debug ( 'default data serializer: %s' , serializer_name ) self . _data_serializer = serializer_name