Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TS.INFO [DEGUB] and CF.MEXISTS in pipelined commands #3787

Merged
merged 4 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions src/main/java/redis/clients/jedis/PipeliningBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -1606,11 +1606,21 @@ public Response<List<Boolean>> scriptExists(String sampleKey, String... sha1) {
return appendCommand(commandObjects.scriptExists(sampleKey, sha1));
}

@Override
public Response<String> scriptLoad(String script) {
return appendCommand(commandObjects.scriptLoad(script));
}

@Override
public Response<String> scriptLoad(String script, String sampleKey) {
return appendCommand(commandObjects.scriptLoad(script, sampleKey));
}

@Override
public Response<String> scriptFlush() {
return appendCommand(commandObjects.scriptFlush());
}

@Override
public Response<String> scriptFlush(String sampleKey) {
return appendCommand(commandObjects.scriptFlush(sampleKey));
Expand All @@ -1621,6 +1631,11 @@ public Response<String> scriptFlush(String sampleKey, FlushMode flushMode) {
return appendCommand(commandObjects.scriptFlush(sampleKey, flushMode));
}

@Override
public Response<String> scriptKill() {
return appendCommand(commandObjects.scriptKill());
}

gerzse marked this conversation as resolved.
Show resolved Hide resolved
@Override
public Response<String> scriptKill(String sampleKey) {
return appendCommand(commandObjects.scriptKill(sampleKey));
Expand Down Expand Up @@ -3907,6 +3922,16 @@ public Response<String> tsDeleteRule(String sourceKey, String destKey) {
public Response<List<String>> tsQueryIndex(String... filters) {
return appendCommand(commandObjects.tsQueryIndex(filters));
}

@Override
public Response<TSInfo> tsInfo(String key) {
return appendCommand(commandObjects.tsInfo(key));
}

@Override
public Response<TSInfo> tsInfoDebug(String key) {
return appendCommand(commandObjects.tsInfoDebug(key));
}
// RedisTimeSeries commands

// RedisBloom commands
Expand Down Expand Up @@ -4015,6 +4040,11 @@ public Response<Boolean> cfExists(String key, String item) {
return appendCommand(commandObjects.cfExists(key, item));
}

@Override
public Response<List<Boolean>> cfMExists(String key, String... items) {
return appendCommand(commandObjects.cfMExists(key, items));
}

@Override
public Response<Boolean> cfDel(String key, String item) {
return appendCommand(commandObjects.cfDel(key, item));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public interface CuckooFilterPipelineCommands {

Response<Boolean> cfExists(String key, String item);

Response<List<Boolean>> cfMExists(String key, String... items);

Response<Boolean> cfDel(String key, String item);

Response<Long> cfCount(String key, String item);
Expand Down
sazzad16 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@ public interface SampleKeyedPipelineCommands {

Response<List<Boolean>> scriptExists(String sampleKey, String... sha1);

Response<String> scriptLoad(String script);

Response<String> scriptLoad(String script, String sampleKey);

Response<String> scriptFlush();

Response<String> scriptFlush(String sampleKey);

Response<String> scriptFlush(String sampleKey, FlushMode flushMode);

Response<String> scriptKill();

Response<String> scriptKill(String sampleKey);
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,8 @@ public interface RedisTimeSeriesPipelineCommands {
Response<String> tsDeleteRule(String sourceKey, String destKey);

Response<List<String>> tsQueryIndex(String... filters);

Response<TSInfo> tsInfo(String key);

Response<TSInfo> tsInfoDebug(String key);
}
Loading