Platform Cache Limits

These limits apply when using Platform Cache.

Key Size Limits

LimitValue
Maximum key size50 characters

Edition-specific Limits

This table shows the amount of Platform Cache available for different types of orgs. To purchase more cache, contact your Salesforce representative.

EditionCache Size
Enterprise10 MB
Unlimited and Performance30 MB
All others0 MB

Partition Size Limits

LimitValue
Minimum partition size1 MB

Session Cache Limits

LimitValue
Maximum size of a single cached item (for put() methods)100 KB
Maximum local cache size for a partition, per-request1500 KB
Minimum developer-assigned time-to-live300 seconds (5 minutes)
Maximum developer-assigned time-to-live28,800 seconds (8 hours)
Maximum session cache time-to-live28,800 seconds (8 hours)

Org Cache Limits

LimitValue
Maximum size of a single cached item (for put() methods)100 KB
Maximum local cache size for a partition, per-request11,000 KB
Minimum developer-assigned time-to-live300 seconds (5 minutes)
Maximum developer-assigned time-to-live172,800 seconds (48 hours)
Default org cache time-to-live86,400 seconds (24 hours)

1 Local cache is the application server’s in-memory container that the client interacts with during a request.