\CouchbaseDocument

Represents Couchbase Document, which stores metadata and the value.

The instances of this class returned by K/V commands of the \Couchbase\Bucket

Summary

Methods
Properties
Constants
No public methods found
$error
$value
$flags
$cas
$token
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$error

$error : \Couchbase\Exception

Type

\Couchbase\Exception — exception object in case of error, or NULL

$value

$value : mixed

Type

mixed — The value stored in the Couchbase.

$flags

$flags : integer

Type

integer — Flags, describing the encoding of the document on the server side.

$cas

$cas : string

Type

string — The last known CAS value of the document

$token

$token : \Couchbase\MutationToken

Type

\Couchbase\MutationToken — The optional, opaque mutation token set after a successful mutation. Note that the mutation token is always NULL, unless they are explicitly enabled on the connection string (`?fetch_mutation_tokens=true`), the server version is supported (>= 4.0.0) and the mutation operation succeeded. If set, it can be used for enhanced durability requirements, as well as optimized consistency for N1QL queries.