The MongoDB\Driver\WriteConcern class

(mongodb >=0.2.0)

MongoDB\Driver\WriteConcern controls the acknowledgment of a write operation, specifies the level of write guarantee for Replica Sets.

Обзор классов

final MongoDB\Driver\WriteConcern {
/* Constants */
const string MAJORITY = majority ;
/* Методы */
final public __construct ( string $wstring [, integer $wtimeout [, boolean $journal [, boolean $fsync ]]] )

Предопределенные константы


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.