Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit d035c23

Browse files
committed
Handle duplicate keys returned in INFO command
1 parent 96472b1 commit d035c23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.Redis/RedisNativeClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public Dictionary<string, string> Info
237237
var p = line.IndexOf(':');
238238
if (p == -1) continue;
239239

240-
info.Add(line.Substring(0, p), line.Substring(p + 1));
240+
info[line.Substring(0, p)] = line.Substring(p + 1);
241241
}
242242

243243
return info;

0 commit comments

Comments
 (0)