lib/resque/stat.rb
# For a string stat name, increments the stat by one.
#
# Can optionally accept a second int parameter. The stat is then
# incremented by that amount.
For a string stat name, increments the stat by one.
Can optionally accept a second int parameter. The stat is then
incremented by that amount.
For a string stat name increments the stat by one . Can optionally accept a second int parameter . The stat is then incremented by that amount .
def incr(stat, by = 1)
      with_retries do
        redis.incrby("stat:#{stat}", by)
      end
    end
def incr ( stat , by = 1 ) with_retries do redis . incrby ( "stat:#{stat}" , by ) end end
For a string stat name, increments the stat by one.
For a string stat name increments the stat by one .
stat
by