array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'class.mongodb-driver-writeconcern.php', 1 => 'MongoDB\\Driver\\WriteConcern', ), 'up' => array ( 0 => 'book.mongodb.php', 1 => 'MongoDB\\Driver', ), 'prev' => array ( 0 => 'mongodb-driver-serverapi.unserialize.php', 1 => 'MongoDB\\Driver\\ServerApi::unserialize', ), 'next' => array ( 0 => 'mongodb-driver-writeconcern.bsonserialize.php', 1 => 'MongoDB\\Driver\\WriteConcern::bsonSerialize', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/mongodb/driver/writeconcern.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.mongodb-driver-writeconcern.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(mongodb >=1.0.0)
MongoDB\Driver\WriteConcern describes the level of
acknowledgement requested from MongoDB for write operations to a standalone
mongod
or to replica sets or to sharded clusters. In
sharded clusters, mongos
instances will pass the write
concern on to the shards.
MongoDB\Driver\WriteConcern::MAJORITY
Majority of all the members in the set; arbiters, non-voting members, passive members, hidden members and delayed members are all included in the definition of majority write concern.
版本 | 说明 |
---|---|
PECL mongodb 1.7.0 | Implements Serializable. |
PECL mongodb 1.2.0 | Implements MongoDB\BSON\Serializable. |