This interface provides the ability to increment and decrement cache entries by their specified value. Some cache backends support this natively so that you don't have to read the item and then increment it and write it back to the cache server, this can be done in a single call to the cache server since it's natively supported by many modern cache servers.
- Implementations MUST allow any integer to be incremented and decremented (i.e. decrementing
0
yields-1
) by any [positive?] integer. - If a key does not exist, implementations MUST NOT create a new cache item and instead return
false
.