Implemented SLAVEOF
This commit is contained in:
@@ -643,4 +643,15 @@ public class Jedis {
|
||||
client.monitor();
|
||||
jedisMonitor.proceed(client);
|
||||
}
|
||||
|
||||
public String slaveof(String host, int port) {
|
||||
client.slaveof(host, port);
|
||||
return client.getStatusCodeReply();
|
||||
}
|
||||
|
||||
public String slaveofNoOne() {
|
||||
client.slaveofNoOne();
|
||||
return client.getStatusCodeReply();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user