PHP Doku:: Returns the address being used by this for slaveOkay reads - mongo.getslave.html

Verlauf / Chronik / History: (4) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatenbankerweiterungenAnbieterspezifische DatenbankerweiterungenMongoDB Native DriverCore ClassesThe Mongo classMongo::getSlave

Ein Service von Reinhard Neidl - Webprogrammierung.

The Mongo class

<<Mongo::getHosts

Mongo::getSlaveOkay>>

Mongo::getSlave

(PECL mongo >=1.1.0)

Mongo::getSlaveReturns the address being used by this for slaveOkay reads

Beschreibung

public string Mongo::getSlave ( void )

This finds the address of the slave currently being used for reads. It is a read-only method: it does not change anything about the internal state of the object.

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

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

The address of the slave this connection is using for reads.

This returns NULL if this is not connected to a replica set or not yet initialized.


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",...)