Stay organized with collections
Save and categorize content based on your preferences.
Tuning Fork cache utilities
Optional persistent cache object to use with Tuning Fork.
Summary
Structs
|
TuningFork_Cache
|
An object used to cache upload data when no connection is available.
|
Typedefs
TuningFork_Cache
struct TuningFork_Cache TuningFork_Cache
An object used to cache upload data when no connection is available.
If you do not supply one of these, data is saved to a temporary file.
TuningFork_CacheGet
TuningFork_ErrorCode(* TuningFork_CacheGet)(uint64_t key, TuningFork_CProtobufSerialization *value, void *user_data)
TuningFork_CacheRemove
TuningFork_ErrorCode(* TuningFork_CacheRemove)(uint64_t key, void *user_data)
TuningFork_CacheSet
TuningFork_ErrorCode(* TuningFork_CacheSet)(uint64_t key, const TuningFork_CProtobufSerialization *value, void *user_data)
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.
[null,null,["Last updated 2021-07-12 UTC."],[],[],null,["# Tuning Fork cache utilities\n===========================\n\nOptional persistent cache object to use with Tuning Fork.\n\nSummary\n-------\n\n| ### Typedefs ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [TuningFork_Cache](#group___tuning_fork___cache_1gab37d34ddaade3d5110a30573597c74f8) | typedef `struct `[TuningFork_Cache](/games/sdk/reference/performance-tuner/custom-engine/struct/tuning-fork-cache#struct_tuning_fork___cache) An object used to cache upload data when no connection is available. |\n| [TuningFork_CacheGet](#group___tuning_fork___cache_1gaf1457e5768f927824caf54f1b1144a92)`)(uint64_t key, TuningFork_CProtobufSerialization *value, void *user_data)` | typedef [TuningFork_ErrorCode](/games/sdk/reference/performance-tuner/custom-engine/group/tuningfork#group__tuningfork_1ga37de0aa93ae4d18dacdf21778a559527)`(*` Pointer to a function that can be attached to [TuningFork_Cache::get](/games/sdk/reference/performance-tuner/custom-engine/struct/tuning-fork-cache#struct_tuning_fork___cache_1af7fac12d2c74822bf0a5a661dd5e179a). |\n| [TuningFork_CacheRemove](#group___tuning_fork___cache_1ga1ea87fb9fa896a11ff969df3a5f3421f)`)(uint64_t key, void *user_data)` | typedef [TuningFork_ErrorCode](/games/sdk/reference/performance-tuner/custom-engine/group/tuningfork#group__tuningfork_1ga37de0aa93ae4d18dacdf21778a559527)`(*` Pointer to a function that can be attached to [TuningFork_Cache::remove](/games/sdk/reference/performance-tuner/custom-engine/struct/tuning-fork-cache#struct_tuning_fork___cache_1a61b2f886317ebae2010cb1b8207546c8). |\n| [TuningFork_CacheSet](#group___tuning_fork___cache_1gac40b998bfe7aba439fff94e1e7900dae)`)(uint64_t key, const TuningFork_CProtobufSerialization *value, void *user_data)` | typedef [TuningFork_ErrorCode](/games/sdk/reference/performance-tuner/custom-engine/group/tuningfork#group__tuningfork_1ga37de0aa93ae4d18dacdf21778a559527)`(*` Pointer to a function that can be attached to [TuningFork_Cache::set](/games/sdk/reference/performance-tuner/custom-engine/struct/tuning-fork-cache#struct_tuning_fork___cache_1a4478018e45f41b8e94b9b615a0d63e7a). |\n\n| ### Structs ||\n|---------------------------------------------------------------------------------------------------|----------------------------------------------------------------------|\n| [TuningFork_Cache](/games/sdk/reference/performance-tuner/custom-engine/struct/tuning-fork-cache) | An object used to cache upload data when no connection is available. |\n\nTypedefs\n--------\n\n### TuningFork_Cache\n\n```scdoc\nstruct TuningFork_Cache TuningFork_Cache\n``` \nAn object used to cache upload data when no connection is available.\n\nIf you do not supply one of these, data is saved to a temporary file. \n\n### TuningFork_CacheGet\n\n```scdoc\nTuningFork_ErrorCode(* TuningFork_CacheGet)(uint64_t key, TuningFork_CProtobufSerialization *value, void *user_data)\n``` \nPointer to a function that can be attached to [TuningFork_Cache::get](/games/sdk/reference/performance-tuner/custom-engine/struct/tuning-fork-cache#struct_tuning_fork___cache_1af7fac12d2c74822bf0a5a661dd5e179a).\n\nFunction that will be called to get a value for a key. **See also:** [TuningFork_Cache](/games/sdk/reference/performance-tuner/custom-engine/struct/tuning-fork-cache#struct_tuning_fork___cache) \n\n### TuningFork_CacheRemove\n\n```scdoc\nTuningFork_ErrorCode(* TuningFork_CacheRemove)(uint64_t key, void *user_data)\n``` \nPointer to a function that can be attached to [TuningFork_Cache::remove](/games/sdk/reference/performance-tuner/custom-engine/struct/tuning-fork-cache#struct_tuning_fork___cache_1a61b2f886317ebae2010cb1b8207546c8).\n\nFunction that will be called to remove an entry in the cache. **See also:** [TuningFork_Cache](/games/sdk/reference/performance-tuner/custom-engine/struct/tuning-fork-cache#struct_tuning_fork___cache) \n\n### TuningFork_CacheSet\n\n```gdscript\nTuningFork_ErrorCode(* TuningFork_CacheSet)(uint64_t key, const TuningFork_CProtobufSerialization *value, void *user_data)\n``` \nPointer to a function that can be attached to [TuningFork_Cache::set](/games/sdk/reference/performance-tuner/custom-engine/struct/tuning-fork-cache#struct_tuning_fork___cache_1a4478018e45f41b8e94b9b615a0d63e7a).\n\nFunction that will be called to set a value for a key. **See also:** [TuningFork_Cache](/games/sdk/reference/performance-tuner/custom-engine/struct/tuning-fork-cache#struct_tuning_fork___cache)"]]