©
本文档使用
php.cn手册 发布
(mongodb >=1.0.0)
$readPreference
[, array $tagSets
] )MongoDB\Driver\ReadPreference::RP_PRIMARY
MongoDB\Driver\ReadPreference::RP_PRIMARY_PREFERRED
MongoDB\Driver\ReadPreference::RP_SECONDARY
MongoDB\Driver\ReadPreference::RP_SECONDARY_PREFERRED
MongoDB\Driver\ReadPreference::RP_NEAREST