I'm trying to put an object which is ~60MB into a single cache item however I am constantly greeted with the following error
ErrorCode<ERRCA0016>:SubStatus<ES0001>:The connection was terminated, possibly due to server or network problems or serialized Object size is greater than MaxBufferSize on server. Result of the request is unknown.. Additional Information : The client was trying to communicate with the server: net.tcp://127.255.0.0:20004/.
At first the error indicated a specific size and it was clear that the client couldn't send such a large message so I increased the MaxBufferSize in the client using the folliwing
<transportProperties maxBufferSize="999999999"/>
Googling and SO searches provided limit resources regarding configuration of the Cache Role (most results prompted the change of the web.config of the web role or similar) Even Microsoft's documentation is limited.
Is it possible, and if so how, to increase the maximum size of a message that a cache role can cache?
The maximum size of a single object that can be cached is 8 MB, after being serialized. There is no way to get the cache library to Put a greater sized object into the cache.
What you can try and do instead is split the object in your client into multiple (in this case 6) objects, but that is really messy.
If you really can not live with the 8 MB restriction, you should put in a feature request here.