Method: Moneta::Defaults#increment
- Defined in:
- lib/moneta/mixins.rb
#increment(key, amount = 1, options = {}) ⇒ Object
Note:
Not every Moneta store implements this method, a NotImplementedError is raised if it is not supported.
Atomically increment integer value with key
This method also accepts negative amounts.
130 131 132 |
# File 'lib/moneta/mixins.rb', line 130 def increment(key, amount = 1, = {}) raise NotImplementedError, 'increment is not supported' end |