@set


Description:

public bool @set (string key, string value, time_t expires = -1)

Set a string value in the bucket.

Example:

  // Add a new key
var success = client.set( "my-key", "example" );
// Add a key with expiration 30 seconds from now
success = client.set( "my-expiring", "example", ( time() + 30 ) );

Parameters:

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