只要使用 Namespaces API,為每個用戶群指定不重複的命名空間字串,即可輕鬆劃分各個用戶群的資料。使用命名空間管理員就能直接為每個用戶群全域設定命名空間 (而不針對特定要求明確進行設定)。啟用命名空間的 API 預設會使用這個目前的命名空間。
Namespaces API 已與 Google Workspace 整合,因此您可以使用 Google Workspace 網域做為目前的命名空間。您可以使用 Google Workspace 將應用程式部署至自己擁有的任何網域,因此可以輕鬆為連結至 Google Workspace 帳戶的所有網域設定專屬命名空間。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-08 (世界標準時間)。"],[[["The Namespaces API in Google App Engine allows for data compartmentalization, primarily used to manage multitenant applications where a single application instance serves multiple client organizations."],["This API uses the `appengine.Namespace` function and is integrated into several namespace-enabled APIs like Datastore, Memcache, Task Queue, and Search."],["By setting a unique namespace string for each tenant via the namespace manager, data can be partitioned across tenants, enabling easier management and segregation of data."],["The Namespaces API is integrated with Google Workspace, allowing for the use of a Google Workspace domain as the current namespace, enabling easy management across multiple domains."],["Beyond multitenancy, the Namespaces API can also be used to compartmentalize user information, separate admin and application data, create distinct datastore instances for testing and production, and run multiple apps within a single App Engine instance."]]],[]]