@get
Description:
Get a number of values from the cache.
If you specify a non-zero value for expiration, the server will update the expiration value on the item (refer to the documentation on cmd_store to see the meaning of the expiration). All other members should be set to zero.
Example:
GetCommand gc = GetCommand() {
key = "my-key"
};
// Set an expiration of 60 (optional)
gc.exptime = 60;
GetCommand*[] commands = { &gc };
instance.get( null, commands );
It is possible to get an item with a lock that has a timeout. It can then be unlocked with either a CAS operation or with an explicit unlock
command.
You may specify the expiration value for the lock in the expiration (setting it to 0 cause the server to use the default value).
Parameters:
command_cookie |
A cookie passed to all of the notifications from this command |
commands |
the array containing the items to get |
Returns:
The status of the operation |