title: Google Scripts CacheService Optimizaiton/ Limit
body: <p>I found the CacheService is quite fast (duh) so decided to create a CacheManager to store a whole manner of things.</p>
  
  <p>JS Object --> JSON--> Blob --> Zip --> base64 encoded string</p>
  
  <p>if the base64 string is > 1E5 chars (100kb) I create an MD5 checksum for the base64 string then split into 100kb sections and then cache those separately as a multipart zip string</p>
  
  <p>I was able to store/ recall ~3MB of raw JSON data in this fashion in ~1.2s (similar speed to a DriveApp API call)</p>
  
  <p>I tried searching for an overall limit for how many total cached objects could be created but didn't find much. Is anyone aware of of an overall limit or performance degradation with large numbers of cached strings?</p>
  
  <p><a href="http://pastebin.podrezo.com/p/59641c9b405a7b5504c0838a" rel="nofollow noreferrer">Source Code</a> for my "cache manager"</p>
  
  <p>Edit: Fixed source URL</p>