Cache Service
Cache
This service allows a script to temporarily cache results that take time to
fetch/compute. Public caches are for things that are not dependent on which user
is accessing your script. Private caches are for things which are user-specific,
like settings or recent activity.
Classes
Name | Brief description |
Cache | A reference to a particular cache. |
CacheService | CacheService allows you to access a cache for short term storage of data. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-26 UTC.
[null,null,["Last updated 2024-11-26 UTC."],[[["Apps Script Cache service provides temporary storage for script results, improving performance by avoiding redundant computations or fetches."],["Two types of caches are available: public caches for shared data and private caches for user-specific information."],["`CacheService` offers methods to access document, script, or user-scoped caches, while the `Cache` class provides methods for data manipulation within a cache instance, like adding, retrieving, and removing entries."],["Cache entries can have optional expiration times, allowing for automatic removal after a specified duration."]]],[]]