#include <kvstore.h> kv_error_t kv_get_with_options(kv_store_t *store, const kv_key_t *key, kv_value_t **valuep, kv_consistency_t *consistency, kv_timeout_t timeout_ms)
Get the value associated with the key. This function allows you to use a non-default consistency policy and timeout value.
The valuep parameter references memory into which is copied the value portion of the retrieved record. Release the resources used by this structure using kv_release_value().
The consistency parameter is the consistency policy you want to use with this operation. You create the consistency policy using kv_create_simple_consistency(), kv_create_time_consistency() or kv_create_version_consistency().
If NULL, the store's default consistency policy is used.