store
Description:
Store an item in the cluster.
You may initialize all of the members in the the lcb_item_st structure with the values you want. Values larger than 30*24*60*60 seconds (30 days) are interpreted as absolute times (from the epoch). Unused members should be set to zero.
Example:
StoreCommand sc = StoreCommand() {
version = 0,
key = "my-key",
bytes = "{ value:666 }".data,
flags = 0xdeadcafe,
cas = 0x1234,
exptime = 0x666,
datatype = DataType.JSON,
operation = Storage.REPLACE
};
StoreCommand*[] commands = { &sc };
instance.store( null, commands );
Parameters:
command_cookie |
A cookie passed to all of the notifications from this command |
commands |
the array containing the items to store |
Returns:
The status of the operation |