Utilità della cache del diapason

Oggetto cache permanente facoltativo da utilizzare con Tuning Fork.

Riepilogo

Typedef

PFnTFCacheGet)(uint64_t key, CProtobufSerialization *value, void *user_data) typedef
Puntatore a una funzione che può essere collegata a TFCache::get.
PFnTFCacheRemove)(uint64_t key, void *user_data) typedef
Puntatore a una funzione che può essere collegata a TFCache::remove.
PFnTFCacheSet)(uint64_t key, const CProtobufSerialization *value, void *user_data) typedef
Puntatore a una funzione che può essere collegata a TFCache::set.

Strutture

TFCache

Un oggetto utilizzato per memorizzare nella cache i dati di caricamento quando non è disponibile alcuna connessione.

Typedef

PFnTFCacheGet

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

Puntatore a una funzione che può essere collegata a TFCache::get.

Funzione che verrà chiamata per ottenere un valore per una chiave. Vedi anche:TFCache

PFnTFCacheRemove

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

Puntatore a una funzione che può essere collegata a TFCache::remove.

Funzione che verrà chiamata per rimuovere una voce nella cache. Vedi anche:TFCache

PFnTFCacheSet

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

Puntatore a una funzione che può essere collegata a TFCache::set.

Funzione che verrà chiamata per impostare un valore per una chiave. Vedi anche:TFCache