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

Remove WATCH from Transaction #2033

Merged
merged 7 commits into from Apr 6, 2021
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/main/java/redis/clients/jedis/MultiKeyPipelineBase.java
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
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);
}

}
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
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