PHP Doku:: Change slaveOkay setting for this database - mongodb.setslaveokay.html

Verlauf / Chronik / History: (2) anzeigen

Sie sind hier:
Doku-Startseite ≥ PHP-Handbuch ≥ Funktionsreferenz ≥ Datenbankerweiterungen ≥ Anbieterspezifische Datenbankerweiterungen ≥ MongoDB Native Driver ≥ Core Classes ≥ The MongoDB class ≥ MongoDB::setSlaveOkay

Ein Service von Reinhard Neidl - Webprogrammierung.

The MongoDB class

<<MongoDB::setProfilingLevel

MongoDB::__toString>>

MongoDB::setSlaveOkay

(PECL mongo >=1.1.0)

MongoDB::setSlaveOkay — Change slaveOkay setting for this database

Beschreibung

public boolean MongoDB::setSlaveOkay ( boolean $ok )

See the query section of this manual for information on distributing reads to slaves.

Parameter-Liste

ok

If reads should be sent to secondary members of a replica set for all possible queries using this MongoDB instance.

Rückgabewerte

Returns the former value of slaveOkay for this instance.


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)