Performs a decrement operation on specified numeric cache item
from the given cache configuration.
public static decrement ( string $name, string $key, integer $offset = 1, array $options = [] ) : integer | boolean | ||
$name | string | Name of the cache configuration to use. |
$key | string | Key of numeric cache item to decrement |
$offset | integer | Offset to decrement - defaults to 1. |
$options | array | Options for this method. - `'conditions'`: A function or item that must return or evaluate to `true` in order to continue operation. |
Résultat | integer | boolean | Item's new value on successful decrement, false otherwise. |