---
schema_version: "1"
id: 7243b11bc6858422f6c3fd392adc7a750d95d57f615e32bf1e2e10b32145dd01
title: Platform Cache Limits
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexcode/apex_platform_cache_limits.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_platform_cache_limits.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6ac74eb2f43864a571df07352f5d754a4053dad28bff459e2030fd638fb622ad
description: These limits apply when using Platform Cache.
---
# Platform Cache Limits

These limits apply when using Platform Cache.

## Platform Cache Limits

Key Size Limits

| Limit | Value |
| --- | --- |
| Maximum key size | 50 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.

| Edition | Cache Size |
| --- | --- |
| Enterprise | 10 MB |
| Unlimited and Performance | 30 MB |
| All others | 0 MB |

Partition Size Limits

| Limit | Value |
| --- | --- |
| Minimum partition size | 1 MB |

Session Cache Limits

| Limit | Value |
| --- | --- |
| Maximum size of a single cached item (for put() methods) | 100 KB |
| Maximum local cache size for a partition, per-request1 | 500 KB |
| Minimum developer-assigned time-to-live | 300 seconds (5 minutes) |
| Maximum developer-assigned time-to-live | 28,800 seconds (8 hours) |
| Maximum session cache time-to-live | 28,800 seconds (8 hours) |

Org Cache Limits

| Limit | Value |
| --- | --- |
| Maximum size of a single cached item (for put() methods) | 100 KB |
| Maximum local cache size for a partition, per-request1 | 1,000 KB |
| Minimum developer-assigned time-to-live | 300 seconds (5 minutes) |
| Maximum developer-assigned time-to-live | 172,800 seconds (48 hours) |
| Default org cache time-to-live | 86,400 seconds (24 hours) |

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