Method: Redis#incr

Defined in:
lib/redis.rb

#incr(key) ⇒ Object

Increment the integer value of a key by one.



914
915
916
917
918
# File 'lib/redis.rb', line 914

def incr(key)
  synchronize do
    @client.call [:incr, key]
  end
end