Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Cache storage max

42 views
Skip to first unread message

fl

unread,
Apr 3, 2025, 1:54:27 PMApr 3
to Google Apps Script Community
Why does cache store only 900 items if more than 1000 is stored, and not 1000?

The cap for cached items is 1,000. If more than 1,000 items are written, the cache stores the 900 items farthest from expiration. This limit might change.

Ed Robinson

unread,
Apr 10, 2025, 1:45:54 PMApr 10
to Google Apps Script Community
"Batching" the expiry is probably done for performance reasons, similar to how garbage collection works in managed runtimes.

In general - for performance, its a better idea to store a few larger objects in cache than 1000 small objects.

Ed  

Reply all
Reply to author
Forward
0 new messages