Do something with custom code after saving a registry


What I want to do is when you save a registry in a custom module, it executes some custom code, so my question is, Do you know where the function save registry is located so I can include my custom code?