The code adds the channel name as [@metadata][redis_channel] if the datatype option is channel or pattern_channel. If the datatype is list then channel will be nil and the metadata will not be set. None of this is mentioned in the documentation. It should be.