redis.clients.jedis.DefaultRedisCredentialsProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis_preview Show documentation
Show all versions of jedis_preview Show documentation
Jedis is a blazingly small and sane Redis java client.
The newest version!
package redis.clients.jedis;
public final class DefaultRedisCredentialsProvider implements RedisCredentialsProvider {
private volatile RedisCredentials credentials;
public DefaultRedisCredentialsProvider(RedisCredentials credentials) {
this.credentials = credentials;
}
public void setCredentials(RedisCredentials credentials) {
this.credentials = credentials;
}
@Override
public RedisCredentials get() {
return this.credentials;
}
}