What is the size of the cache provided by CacheService using GAS

后端 未结 3 1627
天命终不由人
天命终不由人 2020-12-12 01:42

What is the maximum size of the CacheService ?

I know the maximum time something can be stored in cache is 21600 seconds, but I can\'t find how large the sizes of th

3条回答
  •  隐瞒了意图╮
    2020-12-12 02:30

    As mentioned the CacheService size is undocumented. There is a 100KB maximum amount of data stored per key but multiple keys are possible. In an experiment 10MB worth of data was stored using multiple keys. This limit was hit due to execution timeout so more may be possible.

    You may want to look at this community developed CacheHandler library if you are anticipating on using CacheService for a lot of temporary data storage.

提交回复
热议问题