Closed a394484 closed 3 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
Hello, how can I connect if redis has a password?