diff --git a/platform-admin/src/main/resources/j2cache.properties b/platform-admin/src/main/resources/j2cache.properties index 4e9b8524f406b60201e038a6061de8161e506d7d..735d59b427dac4001db9c57af44a58282b494a50 100644 --- a/platform-admin/src/main/resources/j2cache.properties +++ b/platform-admin/src/main/resources/j2cache.properties @@ -8,7 +8,7 @@ # xx.xxxx.xxxx.Xxxxx your own cache broadcast policy classname that implement net.oschina.j2cache.ClusterPolicy ######################################### j2cache.broadcast=redis -#组播的通道名称 +#缁勬挱鐨勯氶亾鍚嶇О jgroups.channel.name=j2cache jgroups.configXml=/network.xml ######################################### @@ -57,8 +57,8 @@ caffeine.properties=/caffeine.properties # # single -> single redis server # sentinel -> master-slaves servers -# cluster -> cluster servers (数据库配置无效,使用 database = 0) -# sharded -> sharded servers (密码、数据库必须在 hosts 中指定,且连接池配置无效 ; redis://user:password@127.0.0.1:6379/0) +# cluster -> cluster servers (鏁版嵁搴撻厤缃棤鏁堬紝浣跨敤 database = 0锛 +# sharded -> sharded servers (瀵嗙爜銆佹暟鎹簱蹇呴』鍦 hosts 涓寚瀹氾紝涓旇繛鎺ユ睜閰嶇疆鏃犳晥 ; redis://user:password@127.0.0.1:6379/0锛 # ######################################### redis.mode=single @@ -72,10 +72,10 @@ redis.channel.host= redis.cluster_name=j2cache ## redis cache namespace optional, default[j2cache] redis.namespace= -## connection 集群环境多个hosts以英文逗号隔开,如 127.0.0.1:6379,127.0.0.1:6378 -redis.hosts=127.0.0.1:6379 +## connection 闆嗙兢鐜澶氫釜hosts浠ヨ嫳鏂囬楀彿闅斿紑锛屽 127.0.0.1:6379,127.0.0.1:6378 +redis.hosts=localhost:6379 redis.timeout=2000 -## 集群每个节点密码必须保持一致 +## 闆嗙兢姣忎釜鑺傜偣瀵嗙爜蹇呴』淇濇寔涓鑷 redis.password= redis.database=0 ## redis pool properties