Examples of RedisVersion


Examples of com.cxy.redisclient.domain.RedisVersion

  }
 
  public JedisCommand getCommand() {
    QueryServerVersion queryVersion = new QueryServerVersion(id);
    queryVersion.execute();
    RedisVersion version = queryVersion.getVersionInfo();
   
    for (JedisCommand command: commands) {
      if (command.getSupportVersion().getVersion() <= version.getVersion()) {
        return command;
      }
    }
    throw new RuntimeException(RedisClient.i18nFile.getText(I18nFile.VERSIONNOTSUPPORT));
  }
View Full Code Here

Examples of com.cxy.redisclient.domain.RedisVersion

  public void execute(Jedis jedis) {
    this.jedis = jedis;
    runCommand();
  }
  protected void runCommand(){
    RedisVersion version = getRedisVersion();
    RedisVersion supportVersion = getSupportVersion();
    if(supportVersion.getVersion() > version.getVersion())
      throw new RuntimeException(RedisClient.i18nFile.getText(I18nFile.VERSIONNOTSUPPORT));
   
    command();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.