# TuningFork_Cache

`#include <tuningfork.h>`

An object used to cache upload data when no connection is available.

## Summary

If you do not supply one of these, data is saved to a temporary file.

| ### Public attributes ||
|---|---|
| `https://developer.android.com/games/sdk/reference/performance-tuner/custom-engine/struct/tuning-fork-cache#struct_tuning_fork___cache_1af7fac12d2c74822bf0a5a661dd5e179a` | `https://developer.android.com/games/sdk/reference/performance-tuner/custom-engine/group/tuning-fork-cache#group___tuning_fork___cache_1gaf1457e5768f927824caf54f1b1144a92` Function to get a value for a key. |
| `https://developer.android.com/games/sdk/reference/performance-tuner/custom-engine/struct/tuning-fork-cache#struct_tuning_fork___cache_1a61b2f886317ebae2010cb1b8207546c8` | `https://developer.android.com/games/sdk/reference/performance-tuner/custom-engine/group/tuning-fork-cache#group___tuning_fork___cache_1ga1ea87fb9fa896a11ff969df3a5f3421f` Function to remove an entry in the cache. |
| `https://developer.android.com/games/sdk/reference/performance-tuner/custom-engine/struct/tuning-fork-cache#struct_tuning_fork___cache_1a4478018e45f41b8e94b9b615a0d63e7a` | `https://developer.android.com/games/sdk/reference/performance-tuner/custom-engine/group/tuning-fork-cache#group___tuning_fork___cache_1gac40b998bfe7aba439fff94e1e7900dae` Function to set a value for a key. |
| `https://developer.android.com/games/sdk/reference/performance-tuner/custom-engine/struct/tuning-fork-cache#struct_tuning_fork___cache_1ab2e2bd476290fb55a222e69cd1b81018` | `void *` Data passed to each callback. |

## Public attributes

### get

```scdoc
TuningFork_CacheGet TuningFork_Cache::get
```
Function to get a value for a key.

### remove

```scdoc
TuningFork_CacheRemove TuningFork_Cache::remove
```
Function to remove an entry in the cache.

### set

```scdoc
TuningFork_CacheSet TuningFork_Cache::set
```
Function to set a value for a key.

### user_data

```scdoc
void * TuningFork_Cache::user_data
```
Data passed to each callback.