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