Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
144 views
in Technique[技术] by (71.8m points)

Is it safe to cache Gmail API message results?

I am iterating over a Gmail account with many thousands of messages. To save resources I am caching the results of users.messages.get. Is it safe to cache this data indefinitely? Will the data it returns ever change? I assume that it will not but so far I am unable to find anything definitive in the docs or otherwise to confirm this.

question from:https://stackoverflow.com/questions/66066170/is-it-safe-to-cache-gmail-api-message-results

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It can change - though it might not necessarily change in a way that you care about.

The API itself lets you change the labels on a Message and delete messages.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...