To use Platform Cache, first set up at least one partition. Once you’ve set up partitions, you can add, access, and remove data from them using the Platform Cache Apex API. Each partition has one session cache and one org cache segment. You can allocate separate capacity to each segment.