Method: Redis#hincrby

Defined in:
lib/redis.rb

#hincrby(key, field, increment) ⇒ Fixnum

Increment the integer value of a hash field by the given number.

Parameters:

  • key (String)
  • field (String)
  • increment (Fixnum)

Returns:

  • (Fixnum)

    value of the field after incrementing it



1435
1436
1437
1438
1439
# File 'lib/redis.rb', line 1435

def hincrby(key, field, increment)
  synchronize do
    @client.call [:hincrby, key, field, increment]
  end
end