kv_get()

#include <kvstore.h>

kv_error_t 
kv_get(kv_store_t *store,
       const kv_key_t *key,
       kv_value_t **valuep) 

Get the value associated with the key. This function uses the store's default consistency policy and timeout value. To use values other than the defaults, use kv_get_with_options() instead.

Parameters

store

The store parameter is the handle to the store from which you want to retrieve the value.

key

The key parameter is the key portion of the record that you want to read.

valuep

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().

This parameter must either be 0, or it must point to a previously used, not-yet-released kv_value_t structure.

See Also

Data Operations and Related Functions