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 |
|---|---|
| `https://developers.google.com/apps-script/reference/cache/cache` | A reference to a particular cache. |
| `https://developers.google.com/apps-script/reference/cache/cache-service` | CacheService allows you to access a cache for short term storage of data. |

## `https://developers.google.com/apps-script/reference/cache/cache`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/cache/cache#get(String)` | `String|null` | Gets the cached value for the given key, or `null` if none is found. |
| `https://developers.google.com/apps-script/reference/cache/cache#getAll(String)` | `Object` | Returns a JavaScript Object containing all key/value pairs found in the cache for an array of keys. |
| `https://developers.google.com/apps-script/reference/cache/cache#put(String,String)` | `void` | Adds a key/value pair to the cache. |
| `https://developers.google.com/apps-script/reference/cache/cache#put(String,String,Integer)` | `void` | Adds a key/value pair to the cache, with an expiration time (in seconds). |
| `https://developers.google.com/apps-script/reference/cache/cache#putAll(Object)` | `void` | Adds a set of key/value pairs to the cache. |
| `https://developers.google.com/apps-script/reference/cache/cache#putAll(Object,Integer)` | `void` | Adds a set of key/value pairs to the cache, with an expiration time (in seconds). |
| `https://developers.google.com/apps-script/reference/cache/cache#remove(String)` | `void` | Removes an entry from the cache using the given key. |
| `https://developers.google.com/apps-script/reference/cache/cache#removeAll(String)` | `void` | Removes a set of entries from the cache. |

## `https://developers.google.com/apps-script/reference/cache/cache-service`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/cache/cache-service#getDocumentCache()` | `https://developers.google.com/apps-script/reference/cache/cache|null` | Gets the cache instance scoped to the current document and script. |
| `https://developers.google.com/apps-script/reference/cache/cache-service#getScriptCache()` | `https://developers.google.com/apps-script/reference/cache/cache` | Gets the cache instance scoped to the script. |
| `https://developers.google.com/apps-script/reference/cache/cache-service#getUserCache()` | `https://developers.google.com/apps-script/reference/cache/cache` | Gets the cache instance scoped to the current user and script. |