Cache Scope - Apps Script | CacheService ~ Episode 17.1

Опубликовано: 08 Ноябрь 2021
на канале: David Weiss
3,287
74

Hey Coders! Before we dive into all the operations of the cache itself, it's good to know the three different scopes of the cache: the User Cache, the Document Cache, and the Script Cache. Similar to how the PropertiesService had three separate scopes, you can restrict who has access to various data living on the cache. For instance, if you wanted to cache some sensitive data from a user, and restrict read requests from that user alone, you could scope that data to the UserCache. For more public data such as today's news story, you could place that on a more public cache, like the ScriptCache. Watch this video to get a better feel for all three scopes!

Check out the source code on GitHub:
https://github.com/davidtheweiss/Apps...

❤️ Support the ongoing growth of this channel, get exclusive perks, and receive consultation on your projects!   / davidweissprogramming  

🧑‍💻 Apps Script Documentation: https://developers.google.com/apps-sc...

----------------------------------------------------------------------------------------------
🕒 Timestamps
0:00 Intro
0:15 The Three Scopes of the Cache
2:53 How to Gain Access to User, Document, & Script Scope
4:30 Putting Data into the Script & User Cache
5:53 Retrieving Data from the Script & User Cache
6:54 Trying to Retrieve Cached Data From a Separate Account
9:25 Accessing Document Cache From a Bounded Script
----------------------------------------------------------------------------------------------
Other playlists:

-------------------------------------
Flutter
-------------------------------------
Basic Widgets:
   • Flutter - Season 2 | Basic Widgets  

Dart:
   • Flutter - Season 1 | Dart  

Flutter Orientation:
   • Flutter - Season 0 | Orientation  

-------------------------------------
Google Cloud
-------------------------------------
Compute Engine:
   • Google Cloud - Season 2 | Compute Engine  

App Engine:
   • Google Cloud - Season 1 | App Engine  

Google Cloud Orientation:
   • Google Cloud - Season 0 | Orientation  

-------------------------------------
Apps Script
-------------------------------------
Cache Service:
   • Apps Script - Season 17 | Cache Service  

JDBC Service:
   • Apps Script - Season 16 | JDBC Service  

Data Studio Service:
   • Apps Script - Season 15 | Data Studio...  

Maps Service:
   • Apps Script - Season 14 | Maps Service  

Utilities Service:
   • Apps Script - Season 13 | Utilities S...  

Properties Service:
   • Apps Script - Season 12 | Properties ...  

URL Fetch Service:
   • Apps Script - Season 11 | URL Fetch S...  

Drive Service:
   • Apps Script - Season 10 | Drive Service  

Forms Service:
   • Apps Script - Season 9 | Forms Service  

Lock Service:
   • Apps Script - Season 8 | Lock Service  

HTML Service:
   • Apps Script - Season 7 | HTML Service  

Document Service:
   • Apps Script - Season 6 | Document Ser...  

Slides Service:
   • Apps Script - Season 5 | Slides Service  

Calendar Service:
   • Apps Script - Season 4 | Calendar Ser...  

Script Service:
   • Apps Script - Season 3 | Script Service  

Gmail Service:
   • Apps Script - Season 2 | Gmail Service  

Spreadsheet Service:
   • Apps Script - Season 1 | Spreadsheet ...  

Apps Script Orientation:
   • Apps Script - Season 0 | Orientation  
----------------------------------------------------------------------------------------------