increase

fun increase(key: String, value: Int = 1): Int

Increases an Int by the given value or by 1 if no value is specified.

If the member doesn't exist, it will be set to 0.

Return

The new value

Parameters

key

The key of the Int

value

The value to increase by. Defaults to 1