def set_if_and_publish(self, ns: str, channels_and_events: Dict[str, List[str]], key: str,
old_data: bytes, new_data: bytes) -> bool:
if self.set_if(ns, key, old_data, new_data):
for channel, events in channels_and_events.items():
def set_if_and_publish(self, ns: str, channels_and_events: Dict[str, List[str]], key: str,
old_data: bytes, new_data: bytes) -> bool:
if self.set_if(ns, key, old_data, new_data):
for channel, events in channels_and_events.items():