| PHP » GoLang | login |
            register |
            
            about | 
| GoLang MongoClient::setReadPreference
                                request it (598)
                            GoLang replacement for PHP's MongoClient::setReadPreference
                            [edit | history] 
                             PHP MongoClient::setReadPreferencePHP original manual for MongoClient::setReadPreference [ show | php.net ]MongoClient::setReadPreference(PECL mongo >=1.3.0) MongoClient::setReadPreference — Set the read preference for this connection This extension that defines this method is deprecated. Instead, the MongoDB extension should be used. There is no equivalent for this method in the new extension. Description
   public bool MongoClient::setReadPreference
    ( string  $read_preference[, array$tags] )Parameters
 Return ValuesReturns  Errors/ExceptionsEmits  ExamplesExample #1 MongoClient::setReadPreference() tag set array syntax example 
<?phpSee Also
 | 
                    more
                     Most requested
 
                    more
                     Last requests
 |