Documentation

BinaryCollection
in package

BinaryCollection is an object containing functionality for performing KeyValue operations against the server with binary documents.

Table of Contents

append()  : MutationResult
Appends a value to a document.
decrement()  : CounterResult
Decrements a counter document by a value.
increment()  : CounterResult
Increments a counter document by a value.
name()  : string
Get the name of the binary collection.
prepend()  : MutationResult
Prepends a value to a document.

Methods

append()

Appends a value to a document.

public append(string $id, string $value[, AppendOptions $options = null ]) : MutationResult
Parameters
$id : string

the key of the document

$value : string

the value to append

$options : AppendOptions = null

the options to use for the operation

Return values
MutationResult

name()

Get the name of the binary collection.

public name() : string
Return values
string

prepend()

Prepends a value to a document.

public prepend(string $id, string $value[, PrependOptions $options = null ]) : MutationResult
Parameters
$id : string

the key of the document

$value : string

the value to prepend

$options : PrependOptions = null

the options to use for the operation

Return values
MutationResult

Search results