Results of 1 - 4 of about 4 for tagSets (0.002 sec.)
- MongoDB\Driver\ReadPreference::__construct — Create a new ReadPreference | PHP ... 10707
- MongoDB\Driver\ReadPreference::__construct (mongodb >=1.0.0) MongoDB\Driver\ReadPreference::__construct — Create a new ReadPreference 説明 final public function MongoDB\Driver\ReadPreference::__construct ( string $mode , ? array $tagSets =
... nearest" Operations read from member of the replica set with the least network latency, irrespective of the member's type. tagSets Tag sets allow you to target read operations to specific members of a replica set. This parameter should be an array of as ... \Driver\Exception\InvalidArgumentException if mode is invalid. Throws MongoDB\Driver\Exception\InvalidArgumentException if tagSets is provided for a primary read preference or is malformed (i.e. not an array of zero or more documents). Throws MongoDB\Dr ...
-
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.construct.html
- MongoDB\Driver\ReadPreference::getTagSets — Returns the ReadPreference's "tagSe... 10707
- MongoDB\Driver\ReadPreference::getTagSets (mongodb >=1.0.0) MongoDB\Driver\ReadPreference::getTagSets — Returns the ReadPreference's "tagSets" option 説明 final public function MongoDB\Driver\ReadPreference::getTagSets (): array パラメータ
... この関数にはパラメータはありません。 戻り値 Returns the ReadPreference's "tagSets" option. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB ... \Driver\ReadPreference::getTagSets() example <?php $mode = MongoDB\Driver\ReadPreference :: SECONDARY_PREFERRED ; /* Null and an empty array both denote no t ... ag set preference. */ $rp = new MongoDB\Driver\ReadPreference ( $mode , null ); var_dump ( $rp -> getTagSets ()); $rp = new MongoDB\Driver\ReadPreference ( $mode , []); var_dump ( $rp -> getTagSets ()); /* Prefer a node in New York ...
-
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.gettagsets.html
- The MongoDB\Driver\ReadPreference class | PHP 8.3 9375
- The MongoDB\Driver\ReadPreference class (mongodb >=1.0.0) はじめに クラス概要 final class MongoDB\Driver\ReadPreference implements MongoDB\BSON\Serializable , Serializable { /* プロパティ */ public readonly string $ mode ; public readonly ?
... * メソッド */ final public function bsonSerialize (): stdClass final public function __construct ( string $mode , ? array $tagSets = null , ? array $options = null ) final public function getHedge (): ? object final public function getMaxStalenessSecond ... s (): int final public function getMode (): int final public function getModeString (): string final public function getTagSets (): array } プロパティ mode The read preference mode as a string (e.g. "primary" , "secondary" ). tags The tag set list us ... ed by the read preference, or null if no tag sets were specified. maxStalenessSeconds The maximum staleness in seconds for reads, or MongoDB\Driver\ReadPreference::NO_MAX_ ...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-readpreference.html
- MongoDB\Driver\Manager::__construct — Create new MongoDB Manager | PHP 8.3 6176
- MongoDB\Driver\Manager::__construct (mongodb >=1.0.0) MongoDB\Driver\Manager::__construct — Create new MongoDB Manager 説明 final public function MongoDB\Driver\Manager::__construct ( ? string $uri = null , ? array $uriOptions = null , ? ar
... "primary" . For details, see MongoDB\Driver\ReadPreference . readPreferenceTags array Corresponds to the read preference's tagSets parameter. Tag sets allow you to target read operations to specific members of a replica set. For details, see MongoDB\Dri ...
-
https://man.mtool.work/php/8.3/mongodb-driver-manager.construct.html
PREV
1
NEXT