Method: Sohm::Model#incr

Defined in:
lib/sohm.rb

#incr(att, count = 1) ⇒ Object

Increment a counter atomically. Internally uses HINCRBY.



976
977
978
# File 'lib/sohm.rb', line 976

def incr(att, count = 1)
  redis.call("HINCRBY", key[:_counters], att, count)
end