You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.