store_bytes_result


Description:

public StoreResult? store_bytes_result (StoreMode mode, string key, uint8[] value, time_t expires = -1)

Store a byte array value in the bucket, and retrieve the full metadata associated with the pair.

Example:

  // Add a new key
var result = client.store_bytes_result( StoreMode.ADD, "my-key", "example".data );
var cas = result.cas;

Parameters:

mode The StoreMode for this action: ADD, REPLACE, or SET
key The key
value The value
expires Optionally, the unix timestamp when the key expires

Returns:

true if the key/value pair was stored successfully