async def _replace(self, key: Text, data: Dict[Text, Any]) -> None:
with await self.pool as r:<EOL><INDENT>await r.set(self.register_key(key), ujson.dumps(data))<EOL><DEDENT>
Replace the register with a new value.