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