store_object


Description:

public bool store_object (StoreMode mode, string key, Object value, time_t expires = -1)

Store a serialized object value in the bucket.

Example:

  // Add a new key
var example_object = new ExampleObject();
example_object.test = "pass";
var success = client.store( StoreMode.ADD, "my-key", example_object );

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