Redis.incrBy

INCRBY work just like {@link #incr(string) INCR} but instead to increment by 1 the increment is integer. <p> INCR commands are limited to 64 bit signed integers. <p> Note: this is actually a string operation, that is, in Redis there are not "integer" types. Simply the string stored at the key is parsed as a base 10 64 bit signed integer, incremented, and then converted back as a string. <p> Time complexity: O(1) @see #incr(string) @see #decr(string) @see #decrBy(string, long) @param key @param increment @return Integer reply, this commands will reply with the new value of key after the increment.

  1. Long incrBy(string key, long increment)
    class Redis
    Long
    incrBy
    (
    string key
    ,)
  2. alias incrBy = BinaryRedis.incrBy

Meta