Tuning Fork cache utilities

Optional persistent cache object to use with Tuning Fork.

Summary

Typedefs

PFnTFCacheGet)(uint64_t key, CProtobufSerialization *value, void *user_data) typedef
Pointer to a function that can be attached to TFCache::get.
PFnTFCacheRemove)(uint64_t key, void *user_data) typedef
Pointer to a function that can be attached to TFCache::remove.
PFnTFCacheSet)(uint64_t key, const CProtobufSerialization *value, void *user_data) typedef
Pointer to a function that can be attached to TFCache::set.

Structs

TFCache

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

Typedefs

PFnTFCacheGet

TFErrorCode(* PFnTFCacheGet)(uint64_t key, CProtobufSerialization *value, void *user_data)

Pointer to a function that can be attached to TFCache::get.

Function that will be called to get a value for a key. See also:TFCache

PFnTFCacheRemove

TFErrorCode(* PFnTFCacheRemove)(uint64_t key, void *user_data)

Pointer to a function that can be attached to TFCache::remove.

Function that will be called to remove an entry in the cache. See also:TFCache

PFnTFCacheSet

TFErrorCode(* PFnTFCacheSet)(uint64_t key, const CProtobufSerialization *value, void *user_data)

Pointer to a function that can be attached to TFCache::set.

Function that will be called to set a value for a key. See also:TFCache