« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 5 of about 5 for maxStalenessSeconds (0.001 sec.)
MongoDB\Driver\ReadPreference::getMaxStalenessSeconds — Returns the ReadPrefere... 12023
MongoDB\Driver\ReadPreference::getMaxStalenessSeconds (mongodb >=1.2.0) MongoDB\Driver\ReadPreference::getMaxStalenessSeconds — Returns the ReadPreference's "maxStalenessSeconds" option 説明 final public function MongoDB\Driver\ReadPreferen ... ce::getMaxStalenessSeconds (): int パラメータ この関数にはパラメータはありません。 戻り値 Returns the ReadPreference's "maxStalenessSeconds" option. ... ows MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\ReadPreference::getMaxStalenessSeconds() example <?php $rp = new MongoDB\Driver\ReadPreference ( MongoDB\Driver\ReadPreference :: SECONDARY ); var_dump ( $rp -> ... getMaxStalenessSeconds ()); $rp = new MongoDB\Driver\ReadPreference ( MongoDB\Driver\ReadPreference :: SECONDARY , null , [ 'maxStalenessSeconds' ...
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.getmaxstalenessseco...
The MongoDB\Driver\ReadPreference class | PHP 8.3 9725
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 ? ... array $ tags ; public readonly int $ maxStalenessSeconds ; public readonly ? object $ hedge ; /* 定数 */ const string PRIMARY = primary ; const string PRIMARY_PREFERRED = primaryP ... , ? array $tagSets = null , ? array $options = null ) final public function getHedge (): ? object final public function getMaxStalenessSeconds (): int final public function getMode (): int final public function getModeString (): string final public function getTagS ... (e.g. "primary" , "secondary" ). tags The tag set list used 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_STALENESS if no maximum staleness was ...
https://man.mtool.work/php/8.3/class.mongodb-driver-readpreference.html
MongoDB\Driver\ReadPreference::__construct — Create a new ReadPreference | PHP ... 9284
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 = ... true] , or explicitly disabling server hedged reads for the "nearest" read preference by specifying ['enabled' => false] . maxStalenessSeconds int Specifies a maximum replication lag, or "staleness", for reads from secondaries. When a secondary's estimated stalenes ... malformed (i.e. not an array of zero or more documents). Throws MongoDB\Driver\Exception\InvalidArgumentException if the "maxStalenessSeconds" option is provided for a primary read preference or is out of range. 変更履歴 バージョン 説明 PECL mongodb 2.0.0 Passing ... option for MongoDB\Driver\Manager::__construct() . PECL mongodb 1.2.0 Added a third options argument, which supports the "maxStalenessSeconds" option. 例 例1 MongoDB\Driver\ReadPreference::__construct() example <?php /* Prefer a secondary node but fall back to a p ...
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.construct.html
MongoDB\Driver\ReadPreference::bsonSerialize — Returns an object for BSON seria... 8530
MongoDB\Driver\ReadPreference::bsonSerialize (mongodb >=1.2.0) MongoDB\Driver\ReadPreference::bsonSerialize — Returns an object for BSON serialization 説明 final public function MongoDB\Driver\ReadPreference::bsonSerialize (): stdClass パラ ... e and max staleness <?php $rp = new MongoDB\Driver\ReadPreference ( MongoDB\Driver\ReadPreference :: SECONDARY , null , [ 'maxStalenessSeconds' => 120 ] ); var_dump ( $rp -> bsonSerialize ()); echo "\n" , MongoDB\BSON\Document :: fromPHP ( $rp )-> toRelaxedExtended ... JSON (); ?> 上の例の出力は、 たとえば以下のようになります。 object(stdClass)#2 (2) { ["mode"]=> string(9) "secondary" ["maxStalenessSeconds"]=> int(120) } { "mode" : "secondary", "maxStalenessSeconds" : 120 } 参考 MongoDB\BSON\Serializable::bsonSerialize() - Pro ...
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.bsonserialize.html
MongoDB\Driver\Manager::__construct — Create new MongoDB Manager | PHP 8.3 6342
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 ... d to change the maximum number of retries when a SystemOverloadedError occurs. Must be a positive integer; defaults to 2 . maxStalenessSeconds int Corresponds to the read preference's "maxStalenessSeconds" . Specifies, in seconds, how stale a secondary can be befor ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.construct.html
PREV 1 NEXT