SpringBoot連線Redis集群

2021-10-16 17:15:45 字數 1618 閱讀 7683

>

>redis.clients>

>jedis>

>

server.port=100

#redis集群節點資訊

spring.redis.cluster.nodes=192.168.25.132:6379,192.168.25.132:6380,192.168.25.133:6379,192.168.25.133:6380,192.168.25.134:6379,192.168.25.134:6380

#redis連線密碼(預設空)

spring.redis.password=

#redis連線池最大連線數(使用負值表示沒有限制)

spring.redis.jedis.pool.max-active=20

#redis連線池最大阻塞等待時間(使用負值表示沒有限制)

spring.redis.jedis.pool.max-wait=-1

#redis連線池最大空閒連線

spring.redis.jedis.pool.max-idle=200

#redis連線池最小空閒連線

spring.redis.jedis.pool.min-idle=20

#redis連線超時時間(毫秒)

springboot連線mongodb的一些問題

今天用springboot整合mongodb的時候報了一些錯誤 org.springframework.data.mongodb.uncategorizedmongodbexception exception authenticating mongocredential nested excepti...

spring boot 配置ldaps 連線

package com.github.wxiaoqi.security.common.config import lombok.extern.slf4j.slf4j import org.springframework.beans.factory.annotation.value import or...

Spring Boot中連線遠端Redis的方法

redis是目前業界使用最廣泛的記憶體資料儲存。相比memcached,redis支援更豐富的資料結構,例如hashes,lists,sets等,同時支援資料持久化。除此之外,redis還提供一些類資料庫的特性,比如事務,ha,主從庫。可以說redis兼具了快取系統和資料庫的一些特性,因此有著豐富的...