All Downloads are FREE. Search and download functionalities are using the official Maven repository.

redis.clients.jedis.params.LolwutParams Maven / Gradle / Ivy

There is a newer version: 5.2.0
Show newest version
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