File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1764,4 +1764,3 @@ func sanitizeExtraBaseRPM(extra map[string]any) {
17641764 }
17651765 extra ["base_rpm" ] = v
17661766}
1767-
Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ import (
2323// 通过 rdb.Time() 获取服务端时间,避免多实例时钟不同步。
2424//
2525// 设计决策:
26- // - TxPipeline vs Pipeline:Pipeline 仅合并发送但不保证原子,TxPipeline 使用 MULTI/EXEC 事务保证原子执行。
27- // - rdb.Time() 单独调用:Pipeline/TxPipeline 中无法引用前一命令的结果,因此 TIME 必须单独调用(2 RTT)。
28- // Lua 脚本可以做到 1 RTT,但在 Redis Cluster 中动态拼接 key 存在 CROSSSLOT 风险,选择安全性优先。
26+ // - TxPipeline vs Pipeline:Pipeline 仅合并发送但不保证原子,TxPipeline 使用 MULTI/EXEC 事务保证原子执行。
27+ // - rdb.Time() 单独调用:Pipeline/TxPipeline 中无法引用前一命令的结果,因此 TIME 必须单独调用(2 RTT)。
28+ // Lua 脚本可以做到 1 RTT,但在 Redis Cluster 中动态拼接 key 存在 CROSSSLOT 风险,选择安全性优先。
2929const (
3030 // RPM 计数器键前缀
3131 // 格式: rpm:{accountID}:{minuteTimestamp}
You can’t perform that action at this time.
0 commit comments