public function append($key, $value, $expiration = 0, $flags = self::FLAG_DEFAULT, $bytes = null)
    {
        /**
         * replace <key> <flags> <exptime> <bytes> [noreply]\r\n
         * <value>\r\n
         */

        // Calculate bytes if not precalculated
        $bytes = ($bytes !== null) ? $bytes : strlen($value);

        // Build packet to send ...
        $data = self::COMMAND_APPEND . self::COMMAND_SEPARATOR   .
            $key                     . self::COMMAND_SEPARATOR   .
            $flags                   . self::COMMAND_SEPARATOR   .
            $expiration              . self::COMMAND_SEPARATOR   .
            $bytes                   . self::COMMAND_TERMINATOR  .
            $value                   . self::COMMAND_TERMINATOR;

        return $this->send(self::COMMAND_APPEND, $data);
    }
public function append($key, $value, $expiration = 0, $flags = self::FLAG_DEFAULT, $bytes = null)
    {
        /**
         * replace <key> <flags> <exptime> <bytes> [noreply]\r\n
         * <value>\r\n
         */

        // Calculate bytes if not precalculated
        $bytes = ($bytes !== null) ? $bytes : strlen($value);

        // Build packet to send ...
        $data = self::COMMAND_APPEND . self::COMMAND_SEPARATOR   .
            $key                     . self::COMMAND_SEPARATOR   .
            $flags                   . self::COMMAND_SEPARATOR   .
            $expiration              . self::COMMAND_SEPARATOR   .
            $bytes                   . self::COMMAND_TERMINATOR  .
            $value                   . self::COMMAND_TERMINATOR;

        return $this->send(self::COMMAND_APPEND, $data);
    }
public function append ( $ key , $ value , $ expiration = 0 , $ flags = self :: FLAG_DEFAULT , $ bytes = null ) { /**
         * replace <key> <flags> <exptime> <bytes> [noreply]\r\n
         * <value>\r\n
         */ // Calculate bytes if not precalculated $ bytes = ( $ bytes !== null ) ? $ bytes : strlen ( $ value ) ; // Build packet to send ... $ data = self :: COMMAND_APPEND . self :: COMMAND_SEPARATOR . $ key . self :: COMMAND_SEPARATOR . $ flags . self :: COMMAND_SEPARATOR . $ expiration . self :: COMMAND_SEPARATOR . $ bytes . self :: COMMAND_TERMINATOR . $ value . self :: COMMAND_TERMINATOR ; return $ this -> send ( self :: COMMAND_APPEND , $ data ) ; }
Appends a key with value and the passed metadata on Memcached instance.
"append" means "add this data to an existing key after existing data".

@param string   $key        The key to set
@param mixed    $value      The value to set
@param int      $expiration The expire time as seconds from now (must be < 30 days) OR a timestamp
@param int      $flags      The flags to set
@param int|null $bytes      The length in bytes

@author Benjamin Carl <opensource@clickalicious.de>
@return mixed The response for command append
@access public
Appends a key with value and the passed metadata on Memcached instance . append means add this data to an existing key after existing data .