Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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 @@ -411,18 +411,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);
}

}
26 changes: 0 additions & 26 deletions src/main/java/redis/clients/jedis/Transaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,30 +91,4 @@ public void setClient(Client client) {
public void close() {
clear();
}

private static final String WATCH_INSIDE_MULTI_MESSAGE = "WATCH inside MULTI is not allowed";

/**
* @param keys
* @return
* @throws UnsupportedOperationException
* @deprecated {@value #WATCH_INSIDE_MULTI_MESSAGE}
*/
@Override
@Deprecated
public Response<String> watch(String... keys) throws UnsupportedOperationException {
throw new UnsupportedOperationException(WATCH_INSIDE_MULTI_MESSAGE);
}

/**
* @param keys
* @return
* @throws UnsupportedOperationException
* @deprecated {@value #WATCH_INSIDE_MULTI_MESSAGE}
*/
@Override
@Deprecated
public Response<String> watch(byte[]... keys) throws UnsupportedOperationException {
throw new UnsupportedOperationException(WATCH_INSIDE_MULTI_MESSAGE);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ public interface MultiKeyBinaryRedisPipeline {

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

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

Response<String> unwatch();

Response<Set<byte[]>> zdiff(byte[]... keys);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ Response<String> blmove(String srcKey, String dstKey, ListDirection from, ListDi

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

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

Response<String> unwatch();

Response<Set<String>> zdiff(String... keys);
Expand Down