Implemented AUTH
This commit is contained in:
@@ -417,4 +417,8 @@ public class Client extends Connection {
|
||||
public void brpop(String[] args) throws JedisException {
|
||||
sendCommand("BRPOP", args);
|
||||
}
|
||||
|
||||
public void auth(String password) throws JedisException {
|
||||
sendCommand("AUTH", password);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -542,4 +542,9 @@ public class Jedis {
|
||||
client.brpop(args.toArray(new String[args.size()]));
|
||||
return client.getMultiBulkReply();
|
||||
}
|
||||
|
||||
public String auth(String password) throws JedisException {
|
||||
client.auth(password);
|
||||
return client.getStatusCodeReply();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user