RiakClientGet 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 public RiakResult<RiakObject> Get(
string bucket,
string key,
RiakGetOptions options = null
)
abstract Get :
bucket : string *
key : string *
?options : RiakGetOptions
(* Defaults:
let _options = defaultArg options null
*)
-> RiakResult<RiakObject>
override Get :
bucket : string *
key : string *
?options : RiakGetOptions
(* Defaults:
let _options = defaultArg options null
*)
-> RiakResult<RiakObject>
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:
RiakResultRiakObject
A
RiakResultTResult, which will contain the found
RiakObject.
Implements
IRiakBatchClientGet(String, String, RiakGetOptions)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