Skip to content

Commit

Permalink
Update src/commands/hash.cr
Browse files Browse the repository at this point in the history
Co-authored-by: Jamie Gaskins <[email protected]>
  • Loading branch information
jwoertink and jgaskins authored Sep 19, 2022
1 parent 4ced28e commit 2cabc7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/hash.cr
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ module Redis::Commands::Hash
run command
end

def hincrby(key : String, field : String, increment : Int32)
run({"hincrby", key, field, increment})
def hincrby(key : String, field : String, increment : Int | String)
run({"hincrby", key, field, increment.to_s})
end

@[Deprecated("The Redis HMSET command is deprecated. Use HSET instead. This method will be removed in v1.0.0 of this shard. See https://redis.io/commands/hmset/")]
Expand Down

0 comments on commit 2cabc7f

Please sign in to comment.