com.lordofthejars.nosqlunit.redis.embedded
Class ConnectionServerOperations
java.lang.Object
com.lordofthejars.nosqlunit.redis.embedded.ConnectionServerOperations
public class ConnectionServerOperations
- extends Object
|
Method Summary |
String |
auth(String password)
Request for authentication in a password protected Redis server. |
byte[] |
echo(byte[] string)
|
String |
ping()
|
String |
quit()
Ask the server to silently close the connection. |
String |
select(int index)
Select the DB with having the specified zero-based numeric index. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionServerOperations
public ConnectionServerOperations()
auth
public String auth(String password)
- Request for authentication in a password protected Redis server. A Redis
server can be instructed to require a password before to allow clients to
issue commands. This is done using the requirepass directive in the Redis
configuration file. If the password given by the client is correct the
server replies with an OK status code reply and starts accepting commands
from the client. Otherwise an error is returned and the clients needs to
try a new password. Note that for the high performance nature of Redis it
is possible to try a lot of passwords in parallel in very short time, so
make sure to generate a strong and very long password so that this attack
is infeasible.
- Parameters:
password -
- Returns:
- Status code reply
echo
public byte[] echo(byte[] string)
ping
public String ping()
quit
public String quit()
- Ask the server to silently close the connection.
select
public String select(int index)
- Select the DB with having the specified zero-based numeric index. For
default every new client connection is automatically selected to DB 0.
- Parameters:
index -
- Returns:
- Status code reply
Copyright © 2012. All Rights Reserved.