redis.clients.jedis.params.LolwutParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis Show documentation
Show all versions of jedis Show documentation
Jedis is a blazingly small and sane Redis java client.
package redis.clients.jedis.params;
import redis.clients.jedis.CommandArguments;
public class LolwutParams implements IParams {
private int version;
private String[] args;
public LolwutParams version(int version) {
this.version = version;
return this;
}
public LolwutParams args(String... args) {
this.args = args;
return this;
}
@Override
public void addParams(CommandArguments args) {
if (this.version != 0) {
args.add(this.version);
}
if (this.args != null) {
args.add(this.args);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy