Documentation

ExistsResult extends Result
in package

Base interface for all results generated by KV operations.

Table of Contents

$cas  : string
$deleted  : bool|null
$error  : CouchbaseException|null
$exists  : bool
$expiry  : int|null
$flags  : int|null
$id  : string
$sequenceNumber  : string|null
cas()  : string
Returns the CAS value for the document
deleted()  : bool|null
Returns true if the document had been just deleted.
error()  : CouchbaseException|null
Returns the error (populated for multi-operations)
exists()  : bool
Returns whether the document exists
expiryTime()  : DateTimeInterface|null
Returns the document expiration time or null if the document does not expire.
flags()  : int|null
id()  : string
Returns the ID of the document
sequenceNumber()  : string|null

Properties

Methods

cas()

Returns the CAS value for the document

public cas() : string
Return values
string —

deleted()

Returns true if the document had been just deleted.

public deleted() : bool|null
Tags
since
4.0.0
Return values
bool|null —

exists()

Returns whether the document exists

public exists() : bool
Tags
since
4.0.0
Return values
bool —

expiryTime()

Returns the document expiration time or null if the document does not expire.

public expiryTime() : DateTimeInterface|null

Note, that this function will return expiry only when GetOptions had withExpiry set to true.

Tags
since
4.0.0
Return values
DateTimeInterface|null —

flags()

public flags() : int|null
Return values
int|null —

id()

Returns the ID of the document

public id() : string
Tags
since
4.0.0
Return values
string —

sequenceNumber()

public sequenceNumber() : string|null
Return values
string|null —

        

Search results