A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/apps-script/reference/cache below:

Cache Service | Apps Script

Cache Service

Stay organized with collections Save and categorize content based on your preferences.

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. Cache Methods Method Return type Brief description get(key) String Gets the cached value for the given key, or null if none is found. getAll(keys) Object Returns a JavaScript Object containing all key/value pairs found in the cache for an array of keys. put(key, value) void Adds a key/value pair to the cache. put(key, value, expirationInSeconds) void Adds a key/value pair to the cache, with an expiration time (in seconds). putAll(values) void Adds a set of key/value pairs to the cache. putAll(values, expirationInSeconds) void Adds a set of key/value pairs to the cache, with an expiration time (in seconds). remove(key) void Removes an entry from the cache using the given key. removeAll(keys) void Removes a set of entries from the cache. CacheService

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-12-02 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-02 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."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4