Skip to content

Commit

Permalink
'Loadex' to 'LoadEx'
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Dec 11, 2022
1 parent 02926f7 commit b0bd26d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/main/java/redis/clients/jedis/Jedis.java
Original file line number Diff line number Diff line change
Expand Up @@ -9113,7 +9113,7 @@ public String moduleLoad(String path, String... args) {
}

@Override
public String moduleLoadex(String path, ModuleLoadexParams params) {
public String moduleLoadEx(String path, ModuleLoadExParams params) {
checkIsInMultiOrPipeline();
connection.sendCommand(new CommandArguments(Command.MODULE).add(LOADEX).add(path)
.addParams(params));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import java.util.List;
import redis.clients.jedis.Module;
import redis.clients.jedis.params.ModuleLoadexParams;
import redis.clients.jedis.params.ModuleLoadExParams;

public interface ModuleCommands {

Expand Down Expand Up @@ -38,7 +38,7 @@ public interface ModuleCommands {
* @param params as in description
* @return OK
*/
String moduleLoadex(String path, ModuleLoadexParams params);
String moduleLoadEx(String path, ModuleLoadExParams params);

/**
* Unload the module specified by name. Note that the module's name is reported by the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@
import redis.clients.jedis.CommandArguments;
import redis.clients.jedis.util.KeyValue;

public class ModuleLoadexParams implements IParams {
public class ModuleLoadExParams implements IParams {

private final List<KeyValue<String, String>> configs = new ArrayList<>();
private final List<String> args = new ArrayList<>();

public ModuleLoadexParams() {
public ModuleLoadExParams() {
}

public ModuleLoadexParams moduleLoadexParams() {
return new ModuleLoadexParams();
public ModuleLoadExParams moduleLoadexParams() {
return new ModuleLoadExParams();
}

public ModuleLoadexParams config(String name, String value) {
public ModuleLoadExParams config(String name, String value) {
this.configs.add(KeyValue.of(name, value));
return this;
}

public ModuleLoadexParams arg(String arg) {
public ModuleLoadExParams arg(String arg) {
this.args.add(arg);
return this;
}
Expand Down

0 comments on commit b0bd26d

Please sign in to comment.