changing default constructor to use default host and port (localhost)

This commit is contained in:
Nykolas Lima
2014-09-27 13:37:42 -03:00
parent f065b80ab0
commit 833065b670
7 changed files with 47 additions and 37 deletions

View File

@@ -11,6 +11,11 @@ import java.util.Map.Entry;
import redis.clients.util.SafeEncoder;
public class Client extends BinaryClient implements Commands {
public Client() {
this(Protocol.DEFAULT_HOST, Protocol.DEFAULT_PORT);
}
public Client(final String host) {
super(host);
}