public function apc_inc($key, $step = 1, $ref = false)
    {
        $code = new Code();
        $code->addStatement('$success = false;');
        $code->addStatement(sprintf(
            '$result = apc_inc(%s, %s, $success);',
            var_export($key, true),
            var_export($step, true)
        ));
        $code->addStatement('return array($result, $success);');

        list($result, $success) = $this->adapter->run($code);

        if (is_object($ref)) {
            $ref->success = $success;
        }

        return $result;
    }
public function apc_inc($key, $step = 1, $ref = false)
    {
        $code = new Code();
        $code->addStatement('$success = false;');
        $code->addStatement(sprintf(
            '$result = apc_inc(%s, %s, $success);',
            var_export($key, true),
            var_export($step, true)
        ));
        $code->addStatement('return array($result, $success);');

        list($result, $success) = $this->adapter->run($code);

        if (is_object($ref)) {
            $ref->success = $success;
        }

        return $result;
    }
public function apc_inc ( $ key , $ step = 1 , $ ref = false ) { $ code = new Code ( ) ; $ code -> addStatement ( '$success = false;' ) ; $ code -> addStatement ( sprintf ( '$result = apc_inc(%s, %s, $success);' , var_export ( $ key , true ) , var_export ( $ step , true ) ) ) ; $ code -> addStatement ( 'return array($result, $success);' ) ; list ( $ result , $ success ) = $ this -> adapter -> run ( $ code ) ; if ( is_object ( $ ref ) ) { $ ref -> success = $ success ; } return $ result ; }
Increase a stored number

@since  3.1.1
@param  string    $key  The key of the value being increased.
@param  int       $step The step, or value to increased.
@param  \stdClass $ref  success is set to TRUE in success and FALSE in failure
@return mixed           Returns the current value of key's value on success, or FALSE on failure
Increase a stored number