mongodb\Command setReadPreference()

setReadPreference() public method

Sets read preference for this command.

public $this setReadPreference ( $readPreference )
$readPreference \MongoDB\Driver\ReadPreference|integer|string|null

Read reference, it can be specified as instance of \MongoDB\Driver\ReadPreference or scalar mode value, for example: ReadPreference::RP_PRIMARY.

return $this

Self reference.

doc_Yii
2016-10-30 17:07:52
Comments
Leave a Comment

Please login to continue.