lib/rufus/edo/cabcore.rb
def incr (key, val=1)

      key = key.to_s

      v = val.is_a?(Fixnum) ? @db.addint(key, val) : @db.adddouble(key, val)

      raise(EdoError.new(
        "incr failed, there is probably already a string value set " +
        "for the key '#{key}'. Make sure there is no value before incrementing"
      )) unless v

      v
    end
def incr (key, val=1)

      key = key.to_s

      v = val.is_a?(Fixnum) ? @db.addint(key, val) : @db.adddouble(key, val)

      raise(EdoError.new(
        "incr failed, there is probably already a string value set " +
        "for the key '#{key}'. Make sure there is no value before incrementing"
      )) unless v

      v
    end
Increments the value stored under the given key with the given increment
 (defaults to 1 (integer)).

 Warning : Tokyo Cabinet/Tyrant doesn't store counter values as regular
 strings (db['key'] won't yield something that replies properly to #to_i)

 Use #counter_value(k) to get the current value set for the counter.