Memcached::increment

Memcached::increment

(PECL memcached >= 0.1.0)

Memcached::incrementIncrement numeric item's value

Description

public int Memcached::increment ( string $key [, int $offset = 1 [, int $initial_value = 0 [, int $expiry = 0 ]]] )

Memcached::increment() increments a numeric item's value by the specified offset. If the item's value is not numeric, an error will result. Memcached::increment() will set the item to the initial_value parameter if the key doesn't exist.

<