Skip to content

Commit

Permalink
[fix]修正HyperLogLog.Merge对Key前缀的支持
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Aug 30, 2024
1 parent 826ccc1 commit 1f3d8b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion NewLife.Redis/HyperLogLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ public Boolean Merge(params String[] keys)
};
foreach (var item in keys)
{
args.Add(item);
if (Redis is FullRedis rds && !rds.Prefix.IsNullOrEmpty())
args.Add(item.EnsureStart(rds.Prefix));
else
args.Add(item);
}
return Execute((rc, k) => rc.Execute<String>("PFMERGE", args.ToArray()), true) == "OK";
}
Expand Down

0 comments on commit 1f3d8b8

Please sign in to comment.