/*
 * Copyright 2016-2017 Leon Chen
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.moilioncircle.redis.replicator.extension.module;

import com.moilioncircle.redis.replicator.rdb.datatype.Module;
import com.moilioncircle.redis.replicator.rdb.module.ModuleParser;

/**
 * @author Leon Chen
 * @since 1.0.0
 */
public interface VersionableModuleParser<T extends Module> extends ModuleParser<T> {

    /**
     * @return module version
     */
    int version();

    /**
     * @return module name
     */
    String name();
}

@@ -826,16 +826,115 @@
 e 1.0.0%0A
+ * @see %3Ca href=%22https://github.com/antirez/redis/blob/unstable/src/modules/TYPES.md%22%3ETYPES.md%3C/a%3E%0A
  */%0Apubl
@@ -1049,78 +1049,234 @@
 ule 
-version
+type name%0A     * modules types require a 9 characters name
 %0A     *
-/
+ %3Cp%3E
 %0A    
-int version();%0A%0A    /**%0A     * @return module name
+ * regex: %5Ba-zA-Z-_%5D%7B@literal %7B9%7D%7D%0A     */%0A    String name();%0A%0A    /**%0A     * @return module version%0A     * version range %7B@literal 0 %3C= version %3C 1024%7D
 %0A   
@@ -1280,29 +1280,29 @@
      */%0A    
-String name
+int version
 ();%0A%7D%0A

fix doc