brucemcpherson / desktopliberation

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

Apps script library with plugins for multiple backend cache platforms #72

Open brucemcpherson opened 3 years ago

brucemcpherson commented 3 years ago

This library used to be part of my cUseful collection, but I’ve decided to pull out into a library in it’s own right. The idea is not only to be able to squeeze more into cache by compression, but also to spread across multiple cache entries. In addition, through the use of plugins, it also allows multiple backend cache stores, all accessed the same way, with the option of creating additional ones. This abstraction allows you to switch platforms as you outgrow them without any main code changes.

The library includes plugins for caching to CacheService, PropertyService and Drive, and in this series of posts I’ll also show you an example of creating a plugin so it can support cloud storage, Office OneDrive, Firebase, and github as a back end. Sadly we can’t do redis directly from Apps Script. If you create any plugins – let me know and we can write them up in these articles.

Links library id: 1nbx8f-kt1rw53qbwn4SO2nKaw9hLYl5OI3xeBgkBC7bpEdWKIPBDkVG0 Github: https://github.com/brucemcpherson/bmCrusher Scrviz: https://scrviz.web.app/?repo=brucemcpherson/bmCrusher