public JedisCommandFactory(int id) {
this.id = id;
}
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;
}