method

decrement

Importance_1
v5.2.3 - Show latest stable - 0 notes - Class: RedisCacheStore
decrement(name, amount = 1, options = nil) public

Cache Store API implementation.

Decrement a cached value. This method uses the Redis decr atomic operator and can only be used on values written with the :raw option. Calling it on a value not stored with :raw will initialize that value to zero.

Failsafe: Raises errors.

Show source
Register or log in to add new notes.