code: def _publish_to_subscribers(event: Event):
      
      subscribers = get_subscribers(event.object_type)
  
      # Add the event to each subscribers published list
      for sub in subscribers:
          DB.prepend_to_list(_keys.published(event.object_type, sub),
                             event.id, pipeline=True)
          event_dict = deepcopy(event.config)
          event_dict.pop('id')
          DB.set_hash_value(_keys.data(event.object_type, sub), event.id,
                            str(event_dict), pipeline=True)
      DB.publish(event.object_type, event.id, pipeline=True)
docs: Publish and event to all subscribers.
  
      - Adds the event id to the published event list for all subscribers.
      - Adds the event data to the published event data for all subscribers.
      - Publishes the event id notification to all subscribers.
  
      Args:
          event (Event): Event object to publish.