Config_db set/get is not working properly

In reply to cgales:

if we call both set and get in body of different class there can be a chance to execute get ?
i tried this thing so that i kept my get in run_phase