increment($id[, $offset = 1])
Parameters: |
|
---|---|
Returns: |
New value on success, FALSE on failure |
Return type: |
mixed |
Performs atomic incrementation of a raw stored value.
1 2 3 4 5 | // 'iterator' has a value of 2 $this ->cache->increment( 'iterator' ); // 'iterator' is now 3 $this ->cache->increment( 'iterator' , 3); // 'iterator' is now 6 |
Please login to continue.