Couchbase C Client
3.0.4
Asynchronous C Client for Couchbase
|
Retrieve a document from the cluster.
Functions | |
lcb_STATUS | lcb_respget_status (const lcb_RESPGET *resp) |
lcb_STATUS | lcb_respget_error_context (const lcb_RESPGET *resp, const lcb_KEY_VALUE_ERROR_CONTEXT **ctx) |
lcb_STATUS | lcb_respget_cookie (const lcb_RESPGET *resp, void **cookie) |
lcb_STATUS | lcb_respget_cas (const lcb_RESPGET *resp, uint64_t *cas) |
lcb_STATUS | lcb_respget_datatype (const lcb_RESPGET *resp, uint8_t *datatype) |
lcb_STATUS | lcb_respget_flags (const lcb_RESPGET *resp, uint32_t *flags) |
lcb_STATUS | lcb_respget_key (const lcb_RESPGET *resp, const char **key, size_t *key_len) |
lcb_STATUS | lcb_respget_value (const lcb_RESPGET *resp, const char **value, size_t *value_len) |
lcb_STATUS | lcb_cmdget_create (lcb_CMDGET **cmd) |
lcb_STATUS | lcb_cmdget_destroy (lcb_CMDGET *cmd) |
lcb_STATUS | lcb_cmdget_parent_span (lcb_CMDGET *cmd, lcbtrace_SPAN *span) |
lcb_STATUS | lcb_cmdget_collection (lcb_CMDGET *cmd, const char *scope, size_t scope_len, const char *collection, size_t collection_len) |
lcb_STATUS | lcb_cmdget_key (lcb_CMDGET *cmd, const char *key, size_t key_len) |
lcb_STATUS | lcb_cmdget_expiry (lcb_CMDGET *cmd, uint32_t expiration) |
lcb_STATUS | lcb_cmdget_locktime (lcb_CMDGET *cmd, uint32_t duration) |
lcb_STATUS | lcb_cmdget_timeout (lcb_CMDGET *cmd, uint32_t timeout) |
lcb_STATUS | lcb_get (lcb_INSTANCE *instance, void *cookie, const lcb_CMDGET *cmd) |
Typedefs | |
typedef struct lcb_RESPGET_ | lcb_RESPGET |
Command for retrieving a single item. More... | |
typedef struct lcb_CMDGET_ | lcb_CMDGET |
typedef struct lcb_RESPGET_ lcb_RESPGET |
Command for retrieving a single item.
exptime
fieldGet And Touch:
It is possible to retrieve an item and concurrently modify its expiration time (thus keeping it "alive"). The item's expiry time can be set by calling #lcb_cmdget_expiry.
Spool a single get operation
instance | the handle |
cookie | a pointer to be associated with the command |
cmd | the command structure |