Skip to content

Commit 7a70b85

Browse files
Copilotbinarywang
andcommitted
改进Redis配置类的注释文档
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
1 parent 1eeb41d commit 7a70b85

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/config/impl/WxCpRedisConfigImpl.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,13 @@ public class WxCpRedisConfigImpl implements WxCpConfigStorage {
6262
private volatile int msgAuditSdkRefCount;
6363
/**
6464
* 会话存档access token锁(本地锁,不支持分布式)
65-
* 注意:此实现使用本地ReentrantLock,在多实例部署时无法保证跨JVM的同步
66-
* 建议在生产环境中自行实现分布式锁机制,或使用其他支持分布式的配置存储实现
65+
*
66+
* <p>注意:此实现使用本地ReentrantLock,在多实例部署时无法保证跨JVM的同步。
67+
* 由于本类已标记为 @Deprecated,建议在生产环境中自行实现支持分布式锁的配置存储。
68+
* 可以考虑使用 Redisson 或 Spring Integration 提供的 Redis 分布式锁实现。</p>
69+
*
70+
* @see #expireMsgAuditAccessToken()
71+
* @see #updateMsgAuditAccessToken(String, int)
6772
*/
6873
private final Lock msgAuditAccessTokenLock = new ReentrantLock();
6974

0 commit comments

Comments
 (0)