PlatformCachePartition
Represents a partition in the Platform Cache.
Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.
This type extends Metadata and inherits its fields.
PlatformCachePartition components have the suffix .cachePartition and are stored in the cachePartitions folder.
Introduced in API version 35.0.
The “Author Apex” permission is required to deploy and retrieve PlatformCachePartition components.
- Type: string
- Required: No
- Description: Describes the cache partition.
- Type: boolean
- Required: Yes
- Description: Required. Indicates whether this cache partition is the default partition in your organization (
true) or not (false).
- Type: string
- Required: Yes
- Description: Required. The label of the cache partition that appears in the Salesforce user interface.
- Type: PlatformCachePartitionType[]
- Required: No
- Description: An array of cache types that the partition can store.
Contains information about a partition type, including its minimum and allocated capacity.
- Type: int
- Required: Yes
- Description: Required. The total storage capacity, in megabytes (MB), that is allocated for the cache type, including free, purchased, and trial cache. Purchased capacity includes organization-wide cache, which can be used in any partition, and namespace-specific cache, which can be used only in partitions associated with a namespace.
- Type: int
- Required: Yes
- Introduced: API version 51.0
- Description: Required. Free capacity, in megabytes (MB). allocated to Developer Edition orgs for the cache type. Use this capacity with security-reviewed managed packages.
- Type: int
- Required: Yes
- Description: Required. The amount of namespace-specific purchased storage capacity, in MB, that is allocated for the cache type.
- Type: int
- Required: Yes
- Description: Required. The amount of trial cache space, in MB, that is allocated for the cache type.
- Type: PlatformCacheType (enumeration of type string)
- Required: Yes
- Description: The type of cache.
- Possible values:
- Session — Session cache
- Organization — Org cache
The following is an example of a PlatformCachePartition component.
The following is an example package.xml that references the previous definition.
If a namespace is defined in your organization, add the namespace prefix to your partition name. For example:
To retrieve all cache partitions from your organization, use the wildcard character (*) as follows.
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.