升级:替换 Redis 缓存源支持集群和哨兵模式及相关修改

This commit is contained in:
2025-05-28 03:20:30 +08:00
parent 7f962319f5
commit c47051476b
9 changed files with 148 additions and 41 deletions

View File

@@ -10,7 +10,7 @@
<listener value="com.zchd.base.AppListener"/>
<listener value="net.tccn.ZhubListener"/>
<source name="int_cache" value="org.redkalex.cache.redis.MyRedisCacheSource">
<!--<source name="int_cache" value="org.redkalex.cache.redis.MyRedisCacheSource">
<node addr="47.106.237.198" password="hello123!" port="6064" db="0"/>
</source>
<source name="str_cache" value="org.redkalex.cache.redis.MyRedisCacheSource">
@@ -18,7 +18,18 @@
</source>
<source name="long_cache" value="org.redkalex.cache.redis.MyRedisCacheSource">
<node addr="47.106.237.198" password="hello123!" port="6064" db="0"/>
</source>-->
<source name="redis" value="com.zchd.base.RedissionCacheSourcex" type="cluster">
<node addr="redis://127.0.0.1:7000"/>
<node addr="redis://127.0.0.1:7001"/>
<node addr="redis://127.0.0.1:7002"/>
</source>
<!--<source name="redis" value="com.zchd.base.RedissionCacheSourcex" type="sentinel" master="mymaster">
<node addr="redis://127.0.0.1:26379"/>
<node addr="redis://127.0.0.1:26380"/>
<node addr="redis://127.0.0.1:26381"/>
</source>-->
</resources>
<server protocol="HTTP" port="8091" maxbody="2m">

View File

@@ -6,6 +6,7 @@ javax.level=INFO
com.sun.level=INFO
sun.level=INFO
jdk.level=INFO
io.netty.level = INFO
java.util.logging.FileHandler.level=FINE
#10M
java.util.logging.FileHandler.limit=10485760