SizeConstraints
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
JSON 表示法 |
{
"maxUpdateEntries": integer,
"maxDatabaseEntries": integer
} |
欄位 |
maxUpdateEntries |
integer
項目數量上限。更新作業包含的項目數量不會超過這個值,但更新作業包含的項目數量可能會少於這個值。這個值不得小於 1024。如果省略或留空,系統就不會設定更新大小限制。
|
maxDatabaseEntries |
integer
設定用戶端願意在本機資料庫中擁有的清單項目數量上限。(伺服器「可能會」導致用戶端儲存的項目數量少於這個數量)。如果省略或零,則未設定任何資料庫大小限制。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],["The content defines the structure for specifying constraints on hash list sizes using a JSON object with two integer fields: `maxUpdateEntries` and `maxDatabaseEntries`. `maxUpdateEntries` sets the maximum number of entries in an update, with a minimum of 1024. `maxDatabaseEntries` limits the number of entries a client is willing to store locally. Omitting either field or setting it to zero indicates no size limit for that aspect.\n"],null,[]]