@Override
    protected String createRegistryCacheKey(URL url) {
        String namespace = url.getParameter(CONFIG_NAMESPACE_KEY);
        url = URL.valueOf(url.toServiceStringWithoutResolving());
        if (StringUtils.isNotEmpty(namespace)) {
            url = url.addParameter(CONFIG_NAMESPACE_KEY, namespace);
        }

        return url.toFullString();
    }
@Test
    void testCreateRegistryCacheKeyWithNamespace() {
        URL url = URL.valueOf(
                "dubbo://" + NetUtils.getLocalAddress().getHostAddress() + ":8080?namespace=test&nacos.check=false");
        String registryCacheKey1 = nacosRegistryFactory.createRegistryCacheKey(url);
        String registryCacheKey2 = nacosRegistryFactory.createRegistryCacheKey(url);
        Assertions.assertEquals(registryCacheKey1, registryCacheKey2);
    }