« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 6 of about 6 for staleness (0.004 sec.)
The MongoDB\Driver\ReadPreference class | PHP 8.3 12649
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 = p ... RY = secondary ; const string SECONDARY_PREFERRED = secondaryPreferred ; const string NEAREST = nearest ; const int NO_MAX_STALENESS = -1 ; const int SMALLEST_MAX_STALENESS_SECONDS = 90 ; /* メソッド */ final public function bsonSerialize (): stdClass fin ... 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 ...
https://man.mtool.work/php/8.3/class.mongodb-driver-readpreference.html
MongoDB\Driver\ReadPreference::getMaxStalenessSeconds — Returns the ReadPrefere... 9816
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" o ... ption. If no max staleness has been specified, MongoDB\Driver\ReadPreference::NO_MAX_STALENESS will be returned. エラー / 例外 Throws 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 ( ...
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.getmaxstalenessseco...
MongoDB\Driver\ReadPreference::__construct — Create a new ReadPreference | PHP ... 9486
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 = ... e] , 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 s ... taleness exceeds this value, the driver stops using it for read operations. If specified, the max staleness must be a signed 32-bit integer greater than or equal to MongoDB\Driver\ReadPreference::SMALLEST_MAX_STALENESS_SECONDS . D ... efaults to MongoDB\Driver\ReadPreference::NO_MAX_STALENESS , which means that the driver will not consider a secondary's lag when choosing where to direct a read operation. This opt ...
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.construct.html
MongoDB\Driver\Manager::__construct — Create new MongoDB Manager | PHP 8.3 7787
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 ... o 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 b ... e before the client stops using it for read operations. By default, there is no maximum staleness and clients will not consider a secondary's lag when choosing where to direct a read operation. For details, see MongoDB\D ... river\ReadPreference . If specified, the max staleness must be a signed 32-bit integer greater than or equal to MongoDB\Driver\ReadPreference::SMALLEST_MAX_STALENESS_SECONDS (i. ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.construct.html
MongoDB\Driver\ReadPreference::bsonSerialize — Returns an object for BSON seria... 7732
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 パラ ... , "use" : "reporting" }, { } ] } 例3 MongoDB\Driver\ReadPreference::bsonSerialize() with secondary read preference and max staleness <?php $rp = new MongoDB\Driver\ReadPreference ( MongoDB\Driver\ReadPreference :: SECONDARY , null , [ 'maxStalenessSeconds ... JSON (); ?> 上の例の出力は、 たとえば以下のようになります。 object(stdClass)#2 (2) { ["mode"]=> string(9) "secondary" ["maxStalenessSeconds"]=> int(120) } { "mode" : "secondary", "maxStalenessSeconds" : 120 } 参考 MongoDB\BSON\Serializable::bsonSerialize( ...
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.bsonserialize.html
サンプル | PHP 8.3 7293
サンプル マニュアル内の全サンプルの一覧 Example#0 - 初歩的な例 Example#1 - 初めての PHP スクリプト: hello.php Example#2 - PHP からシステムに関する情報を取得する Example#3 - 変数を出力する (配列要素) Example#4 - 制御構造 および 関数の使用例 ... preference and tag sets Example#1517 - MongoDB\Driver\ReadPreference::bsonSerialize with secondary read preference and max staleness Example#1518 - MongoDB\Driver\ReadPreference::__construct example Example#1519 - MongoDB\Driver\ReadPreference::getMaxStal ...
https://man.mtool.work/php/8.3/indexes.examples.html
PREV 1 NEXT