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

Commit be88f71

Browse files
author
Jesse Pasichnyk
committed
Call HINCRBYFLOAT instead of HINCRBY, when incrementing a float value in a hash
1 parent c2777c9 commit be88f71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ServiceStack.Redis/RedisNativeClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,7 @@ public double HIncrbyFloat(string hashId, byte[] key, double incrementBy)
17401740
{
17411741
AssertHashIdAndKey(hashId, key);
17421742

1743-
return SendExpectDouble(Commands.HIncrBy, hashId.ToUtf8Bytes(), key, incrementBy.ToString(CultureInfo.InvariantCulture).ToUtf8Bytes());
1743+
return SendExpectDouble(Commands.HIncrByFloat, hashId.ToUtf8Bytes(), key, incrementBy.ToString(CultureInfo.InvariantCulture).ToUtf8Bytes());
17441744
}
17451745

17461746
public byte[] HGet(string hashId, byte[] key)

0 commit comments

Comments
 (0)