Stay organized with collections
Save and categorize content based on your preferences.
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
|
get
|
Function to get a value for a key.
|
remove
|
Function to remove an entry in the cache.
|
set
|
Function to set a value for a key.
|
user_data
|
void *
Data passed to each callback.
|
Public attributes
user_data
void * TuningFork_Cache::user_data
Data passed to each callback.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-07-12 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 2021-07-12 UTC."],[],[],null,["# TuningFork_Cache Struct Reference\n\nTuningFork_Cache\n================\n\n`#include \u003ctuningfork.h\u003e`\n\nAn object used to cache upload data when no connection is available.\n\nSummary\n-------\n\nIf you do not supply one of these, data is saved to a temporary file.\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [get](#struct_tuning_fork___cache_1af7fac12d2c74822bf0a5a661dd5e179a) | [TuningFork_CacheGet](/games/sdk/reference/performance-tuner/custom-engine/group/tuning-fork-cache#group___tuning_fork___cache_1gaf1457e5768f927824caf54f1b1144a92) Function to get a value for a key. |\n| [remove](#struct_tuning_fork___cache_1a61b2f886317ebae2010cb1b8207546c8) | [TuningFork_CacheRemove](/games/sdk/reference/performance-tuner/custom-engine/group/tuning-fork-cache#group___tuning_fork___cache_1ga1ea87fb9fa896a11ff969df3a5f3421f) Function to remove an entry in the cache. |\n| [set](#struct_tuning_fork___cache_1a4478018e45f41b8e94b9b615a0d63e7a) | [TuningFork_CacheSet](/games/sdk/reference/performance-tuner/custom-engine/group/tuning-fork-cache#group___tuning_fork___cache_1gac40b998bfe7aba439fff94e1e7900dae) Function to set a value for a key. |\n| [user_data](#struct_tuning_fork___cache_1ab2e2bd476290fb55a222e69cd1b81018) | `void *` Data passed to each callback. |\n\nPublic attributes\n-----------------\n\n### get\n\n```scdoc\nTuningFork_CacheGet TuningFork_Cache::get\n``` \nFunction to get a value for a key. \n\n### remove\n\n```scdoc\nTuningFork_CacheRemove TuningFork_Cache::remove\n``` \nFunction to remove an entry in the cache. \n\n### set\n\n```scdoc\nTuningFork_CacheSet TuningFork_Cache::set\n``` \nFunction to set a value for a key. \n\n### user_data\n\n```scdoc\nvoid * TuningFork_Cache::user_data\n``` \nData passed to each callback."]]