RedisBloom / JRedisBloom

Java Client for RedisBloom probabilistic module
https://redisbloom.io
BSD 2-Clause "Simplified" License
153 stars 33 forks source link

redis password #9

Closed a394484 closed 3 years ago

a394484 commented 5 years ago

Hello, how can I connect if redis has a password?

c5p0 commented 4 years ago

Hello, how can I connect if redis has a password?

JedisPoolConfig conf = new JedisPoolConfig(); conf.setMaxTotal(100); conf.setTestOnBorrow(false); conf.setTestOnReturn(false); conf.setTestOnCreate(false); conf.setTestWhileIdle(false); conf.setMinEvictableIdleTimeMillis(60000L); conf.setTimeBetweenEvictionRunsMillis(30000L); conf.setNumTestsPerEvictionRun(-1); conf.setFairness(true); JedisPool jedisPool = new JedisPool(conf,"192.168.18.131",6379,30000,"123456"); Client client = new Client(jedisPool); you can definition jedispool