Redis.hincrBy

Increment the number stored at field in the hash at key by value. If key does not exist, a new key holding a hash is created. If field does not exist or holds a string, the value is set to 0 before applying the operation. Since the value argument is signed you can use this command to perform both increments and decrements. <p> The range of values supported by HINCRBY is limited to 64 bit signed integers. <p> <b>Time complexity:</b> O(1) @param key @param field @param value @return Integer reply The new value at field after the increment operation.

  1. Long hincrBy(string key, string field, long value)
    class Redis
    Long
    hincrBy
    (
    string key
    ,
    string field
    ,
    long value
    )
  2. alias hincrBy = BinaryRedis.hincrBy

Meta