Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
12 changes: 0 additions & 12 deletions src/main/java/redis/clients/jedis/MultiKeyPipelineBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -297,18 +297,6 @@ public Response<Long> sunionstore(byte[] dstkey, byte[]... keys) {
return getResponse(BuilderFactory.LONG);
}

@Override
public Response<String> watch(String... keys) {
client.watch(keys);
return getResponse(BuilderFactory.STRING);
}

@Override
public Response<String> watch(byte[]... keys) {
client.watch(keys);
return getResponse(BuilderFactory.STRING);
}

@Override
public Response<String> unwatch() {
client.unwatch();
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/redis/clients/jedis/Pipeline.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,14 @@ public void close() {
clear();
}

public Response<String> watch(String... keys) {
client.watch(keys);
return getResponse(BuilderFactory.STRING);
}

public Response<String> watch(byte[]... keys) {
client.watch(keys);
return getResponse(BuilderFactory.STRING);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ public interface MultiKeyBinaryRedisPipeline {

Response<Long> sunionstore(byte[] dstkey, byte[]... keys);

Response<String> watch(byte[]... keys);

Response<String> unwatch();

Response<Long> zinterstore(byte[] dstkey, byte[]... sets);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ public interface MultiKeyCommandsPipeline {

Response<Long> sunionstore(String dstkey, String... keys);

Response<String> watch(String... keys);

Response<String> unwatch();

Response<Long> zinterstore(String dstkey, String... sets);
Expand Down