Skip to content

Commit b7d7542

Browse files
committed
Redis集群读写测试通过。
附上Windows集群脚本
1 parent 2934b70 commit b7d7542

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Doc/Redis集群.rar

806 KB
Binary file not shown.

NewLife.Redis/RedisCluster.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public virtual Node SelectNode(String key)
5151
{
5252
if (key.IsNullOrEmpty()) return null;
5353

54-
var slot = key.GetBytes().Crc16() / 16384;
54+
var slot = key.GetBytes().Crc16() % 16384;
5555
var ns = Nodes.Where(e => e.LinkState == 1).ToList();
5656
// 找主节点
5757
foreach (var node in ns)

0 commit comments

Comments
 (0)