}
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));
}