lithium\storage\cache\adapter\Memcache::increment()
Implements
lithium\storage\cache\Adapter::increment()
Performs an atomic increment operation on specified numeric cache item.
Note that, as per the Memcached specification: "If the item's value is not numeric, it is treated as if the value were 0."
Parameters
-
string
$keyKey of numeric cache item to increment.
-
integer
$offsetOffset to increment - defaults to
1.
Returns
integer|booleanThe item's new value on successful increment, else false.
Links
Source
public function increment($key, $offset = 1) {
return $this->connection->increment($key, $offset);
}