\yrmcdsResponse

Response from memcached / yrmcds server.

This class represents a command response from the server.

These properties are always set:

  • $status
  • $serial
  • $length
  • $command

Other properties may or may not be set depending on the command and status.

Summary

Methods
Properties
Constants
No public methods found
$status
$serial
$length
$command
$cas_unique
$flags
$key
$data
$value
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$status

$status : integer

The server response status code.

The value should be one of \yrmcds\STATUS_* constant. Values other than \yrmcds\STATUS_OK indicate an error.

Type

integer

$serial

$serial : integer

The serial number of the request.

Type

integer

$length

$length : integer

The response packet size in bytes.

Type

integer

$command

$command : integer

The requested command code.

The value should be one of \yrmcds\CMD_* constant.

Type

integer

$cas_unique

$cas_unique : integer

An object's current CAS value.

This property is available only for successfull get/set commands.

Type

integer

$flags

$flags : integer

An object's flags.

This property is available only for successfull get commands.

Type

integer

$key

$key : string

Key.

This property is available only for successfull getk commands and statistics commands.

Type

string

$data

$data : string

Raw byte data.

This property is available only for successfull get commands and statistics commands.

Type

string

$value

$value : integer

Numeric object value.

This property is available only for successful incr/decr commands.

Type

integer