The set operations store a value into Membase using the specified key and value. The value is stored against the specified key, even if the key already exists and has data. This operation overwrites the existing with the new data.
|Description||Store a value using the specified key, whether the key already exists or not. Will overwrite a value if the given key/value already exists.|
|Document ID used to identify the value|
|Expiry time for key. Values larger than 30*24*60*60 seconds (30 days) are interpreted as absolute times (from the epoch).|
|Flags for storage options. Flags are ignored by the server byt preserved for use by the client.|
|Value to be stored|
|Name of the vBucket to be used for storage.|
The first form of the
set() method stores
the key and sets the expiry (use 0 for no expiry).
The simplest form of the command is: