Sharing cache between Google Workspace projects

60 views
Skip to first unread message

Bruce Mcpherson

unread,
Jun 9, 2024, 8:23:44 AMJun 9
to Google Apps Script Community

A recent question on the Google Apps Script group community forum asked if it was possible to share user managed configuration data (in a spreadsheet) with multiple (presumably) container bound scripts in various other projects, while avoiding the overhead associated with continually reading some shared configuration spreadsheet. So, of course I created a new cache library (bmCacheSharer) to make all that possible.

Although the initial request was spreadsheet focused you can use it for any data shared between scripts – for example API results or any other derived data that is expensive or slow to access.

This library provides a number of useful caching features, so even if you don’t need to share caching between scripts, you can still benefit from the features by using it with your own script’s CacheService.

Here’s how it works.

https://ramblings.mcpher.com/gassnippets2/sharing-cache-between-google-workspace-projects/



Reply all
Reply to author
Forward
0 new messages