brucemcpherson / desktopliberation

hosting for desktop liberation google plus community
30 stars 1 forks source link

Sharing cache between Google Workspace projects #164

Open brucemcpherson opened 3 months ago

brucemcpherson commented 3 months ago

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/

image