Add Cache data - Max allowed data size

I’m adding a JSON object into cache with a size of 10,240 bytes. There error returned is HTTP error code of 400 and error string is: “The object exceeds maximum permitted serialized size 10240 bytes”.

The JSON statement is "{“itemKey”, “itemData”}. itemData is an array size of 10,240 bytes.

Does the size limit include the size of the entire JSON statement?

Hi Roy!

Yes, limit include the size of the entire JSON statement.
More information you can get from Caching API documentation.
Regards,
Kate.