Typedef PntosKeyValueStore
Defined in File common.h
Typedef Documentation
-
typedef struct PntosKeyValueStore PntosKeyValueStore
A key-value store implemented with a string-pair key. Each value can be looked up by an associated key (string). Values can be a variety of different types, depending on which typed function is called. For example, to store a string value “foo” in the key-value store under the key “k1”, one would write:
At this point, the key-value store would have recorded the value into its internal data storage. Later a user could callstore->set_str(store, "k1", "foo");
To retrieve the value from the store.store->get_str(store, "k1");
In general, a PntosKeyValueStore is generated by a PntosRegistry and not directly by other code. The PntosRegistry will return key/value stores on demand, utilizing the data backing store chosen by the plugin to store data (either ephemerally in memory or permanently in persistent storage). In general, it is only valid to call the getters/setters on a PntosKeyValueStore during a batch operation. See PntosRegistry for more information.