Learn the "why" behind slow queries and how to fix them in our 2-Part Webinar.
Register now >
Docs Menu
Docs Home
/ /

MongoDB\GridFS\Bucket::getChunkSizeBytes()

バージョン 1.2 で変更

MongoDB\GridFS\Bucket::getChunkSizeBytes()

このバケットのチャンク サイズをバイト単位で返します。

function getChunkSizeBytes(): integer

このバケットのチャンク サイズ(バイト単位)。

<?php
$bucket = (new MongoDB\Client)->test->selectGridFSBucket();
var_dump($bucket->getChunkSizeBytes());

出力は次のようになります。

int(261120)

戻る

getChunksCollection()

項目一覧