Method: RedisHash::Counters#decrement
- Defined in:
- lib/redis_hash/concerns/counters.rb
#decrement(field, by: 1) ⇒ Object
28 29 30 |
# File 'lib/redis_hash/concerns/counters.rb', line 28 def decrement(field, by: 1) increment_field_by(field, by, modifier: -1) end |