protected function parseArithmeticResponse($buffer, array $lines)
    {
        // Extract meta-data
        $metaData = explode(self::COMMAND_SEPARATOR, $lines[0]);

        // Check buffer for failure response
        if ($buffer === self::RESPONSE_NOT_FOUND . self::COMMAND_TERMINATOR) {
            $result = $this->setLastResponse(self::MEMCACHED_NOTFOUND);

        } else {
            // Insert the response (= new value) as result
            $result = (float)$metaData[0];
        }

        return $result;
    }
protected function parseArithmeticResponse($buffer, array $lines)
    {
        // Extract meta-data
        $metaData = explode(self::COMMAND_SEPARATOR, $lines[0]);

        // Check buffer for failure response
        if ($buffer === self::RESPONSE_NOT_FOUND . self::COMMAND_TERMINATOR) {
            $result = $this->setLastResponse(self::MEMCACHED_NOTFOUND);

        } else {
            // Insert the response (= new value) as result
            $result = (float)$metaData[0];
        }

        return $result;
    }
protected function parseArithmeticResponse ( $ buffer , array $ lines ) { // Extract meta-data $ metaData = explode ( self :: COMMAND_SEPARATOR , $ lines [ 0 ] ) ; // Check buffer for failure response if ( $ buffer === self :: RESPONSE_NOT_FOUND . self :: COMMAND_TERMINATOR ) { $ result = $ this -> setLastResponse ( self :: MEMCACHED_NOTFOUND ) ; } else { // Insert the response (= new value) as result $ result = ( float ) $ metaData [ 0 ] ; } return $ result ; }
Parser for response of arithmetic request.

SUCCESS = RESPONSE = "NEW VALUE AFTER OPERATION [2 will incr to X] OR [1 will decr to Y] ..."
FAILED  = RESPONSE = "NOT_FOUND"

@param string $buffer The buffer to parse
@param array  $lines  Response split into single lines

@author Benjamin Carl <opensource@clickalicious.de>
@return string|bool The version as string if valid, otherwise FALSE
@access protected
Parser for response of arithmetic request .