Google Apps脚本中缓存服务的最长到期时间 [英] Maximum expiration time for Cache Services in Google Apps Script

查看:97
本文介绍了Google Apps脚本中缓存服务的最长到期时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道Google Apps Script中缓存服务的最长过期时间是多少?我在Google协作平台上运行我的脚本,并尝试运行重新缓存缓存的触发器,但缓存似乎仍然在一夜之间过期,我不确定它持续多久。如果有人对缓存的实际长度进行了计时,那么很高兴知道 - 不幸的是,Google并未公开此信息。

解决方案

我们正在努力将这些信息添加到我们的文档中,但最多可以在6小时内将某些内容存储在缓存中(21600秒),默认时间为10分钟(600秒)。

Does anybody know what the maximum expiration time for Cache Services in Google Apps Script is? I am running my script on Google Sites and have tried to run a trigger that re-caches the cache, but the cache seems to still expire overnight and I am not certain how long it lasts. If anyone has timed the actual length of the cache it would be good to know - unfortunately, Google hasn't made this info public.

解决方案

We are working on adding that information to our documentation, but the maximum time something can be stored in the cache in 6 hours (21600 seconds) and the default time is 10 minutes (600 seconds).

这篇关于Google Apps脚本中缓存服务的最长到期时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆