Memcache::increment()
Memcache::increment - Increment item's value
Syntax
int Memcache::increment (
string $key,
int $value)
Arguments
- key - Key of the item to increment.
- value - Increment the item by value.
Description
Memcache::increment() increments value of an item by the specified value. If item specified by key was not numeric and cannot be converted to a number, it will change its value to value. Memcache::increment() does notcreate an item if it doesn't already exist. Note: Do not use Memcache::increment() with items that have been stored compressed because subsequent calls to Memcache::get() will fail. Also you can use memcache_increment() function.
Version
PHP PECL memcache >= 0.2.0
Return value
Returns new items value on success or FALSE on failure.