public void cache(final MetaData data) {
        // clean old path data
        Optional.ofNullable(META_DATA_MAP.get(data.getId())).ifPresent(oldMetaData -> {
            // the update is also need to clean, but there is
            // no way to distinguish between crate and update,
            // so it is always clean
            clean(oldMetaData.getPath());
        });
        META_DATA_MAP.put(data.getId(), data);
        final String path = data.getPath();
        clean(path);
        if (!path.contains("*")) {
            // only in this condition, we need to init cache
            initCache(path, data, path);
        }
    }
Cache auth data.

@param data the data
shenyu-plugin/shenyu-plugin-base/src/main/java/org/apache/shenyu/plugin/base/cache/MetaDataCache.java