PHP Doku:: Change slaveOkay setting for this connection - mongo.setslaveokay.html

Verlauf / Chronik / History: (5) anzeigen

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

Ein Service von Reinhard Neidl - Webprogrammierung.

The Mongo class

<<Mongo::selectDB

Mongo::switchSlave>>

Mongo::setSlaveOkay

(PECL mongo >=1.1.0)

Mongo::setSlaveOkay — Change slaveOkay setting for this connection

Beschreibung

public boolean Mongo::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 Mongo 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",...)