Click or drag to resize
IRiakAsyncClientGet Method (String, String, RiakGetOptions)
Get the specified key from the bucket. Optionally can be read from rVal instances. By default, the server's r-value will be used, but can be overridden by rVal.

Namespace:  RiakClient
Assembly:  RiakClient (in RiakClient.dll) Version: f9bb17a3f8ff6940b88010a52f202e3d55fe25c5
Syntax
Task<RiakResult<RiakObject>> Get(
	string bucket,
	string key,
	RiakGetOptions options = null
)

Parameters

bucket
Type: SystemString
The name of the bucket containing the key.
key
Type: SystemString
The key of the object.
options (Optional)
Type: RiakClient.ModelsRiakGetOptions
The RiakGetOptions responsible for configuring the semantics of this single get request. These options will override any previously defined bucket configuration properties.

Return Value

Type: TaskRiakResultRiakObject
A TaskTResult, that will contain a RiakResultTResult, which will contain the found RiakObject.
Remarks
If a node does not respond, that does not necessarily mean that the bucket/key combination is not available. It simply means that fewer than R/PR nodes responded to the read request. See RiakGetOptions for information on how different options change Riak's default behavior.
See Also