gu.dtalk.redis.DefaultLocalhostRedisConfigProvider Maven / Gradle / Ivy
package gu.dtalk.redis;
import static redis.clients.jedis.Protocol.DEFAULT_HOST;
import static redis.clients.jedis.Protocol.DEFAULT_PORT;
/**
* {@link RedisConfigProvider}默认实现,只用于测试
* @author guyadong
*
*/
import java.net.URI;
/**
* 本机(LOCALHOST)配置默认实现(仅用于测试)
* @author guyadong
*
*/
public class DefaultLocalhostRedisConfigProvider implements RedisConfigProvider {
@Override
public String getHost() {
return DEFAULT_HOST;
}
@Override
public int getPort() {
return DEFAULT_PORT;
}
@Override
public String getPassword() {
return null;
}
@Override
public int getDatabase() {
return 0;
}
@Override
public int getTimeout() {
return 0;
}
@Override
public void setHost(String host) {
}
@Override
public void setPort(int port) {
}
@Override
public void setPassword(String password) {
}
@Override
public void setDatabase(int database) {
}
@Override
public void setTimeout(int timeout) {
}
@Override
public URI getURI(){
return null;
}
@Override
public void setURI(URI uri){
}
@Override
public final RedisConfigType type() {
return RedisConfigType.LOCALHOST;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy