set module cache by namespace. add locateSync method.