Couchbase C Client  2.10.6
Asynchronous C Client for Couchbase
lcb_STORECMDv0 Struct Reference

lcb_store() Command structure More...

#include <api-legacy.h>

Data Fields

const void * key
 
lcb_SIZE nkey
 
const void * bytes
 Value to store.
 
lcb_SIZE nbytes
 Length of value to store.
 
lcb_U32 flags
 User-defined flags stored along with the item.
 
lcb_cas_t cas
 If present, the server will check that the item's current CAS matches the value specified here. More...
 
lcb_time_t exptime
 Expiration for the item. More...
 
lcb_storage_t operation
 Mandatory. More...
 

Detailed Description

lcb_store() Command structure

This structure is used to define an item to be stored on the server.

Field Documentation

◆ cas

lcb_cas_t cas

If present, the server will check that the item's current CAS matches the value specified here.

If this check fails the command will fail with an LCB_KEY_EEXISTS error.

Warning
For LCB_APPEND and LCB_PREPEND, this field should be 0.

◆ exptime

lcb_time_t exptime

Expiration for the item.

0 means never expire.

Warning
for LCB_APPEND and LCB_PREPEND, this field should be 0.

◆ operation

lcb_storage_t operation

Mandatory.

Mutation type


The documentation for this struct was generated from the following file: