Member Function Documentation
Get the bucket by the specified name. Since buckets always exist, this will always return a RiakBucket.
- Returns:
- RiakBucket
Get the clientID for this RiakClient.
- Returns:
- string
Get the DW-value for this ClientOBject. (default 2)
- Returns:
- integer
Get the R-value setting for this RiakClient. (default 2)
- Returns:
- integer
Get the W-value setting for this RiakClient. (default 2)
- Returns:
- integer
Check if the Riak server for this RiakClient is alive.
- Returns:
- boolean
| RiakClient |
( |
$ |
host = '127.0.0.1', |
|
|
$ |
port = 8098, |
|
|
$ |
prefix = 'riak', |
|
|
$ |
mapred_prefix = 'mapred' |
|
) |
| |
Construct a new RiakClient object.
- Parameters:
-
| string | $host | - Hostname or IP address (default '127.0.0.1') |
| int | $port | - Port number (default 8098) |
| string | $prefix | - Interface prefix (default "riak") |
| string | $mapred_prefix | - MapReduce prefix (default "mapred") |
| setClientID |
( |
$ |
clientid ) |
|
Set the clientID for this RiakClient. Should not be called unless you know what you are doing.
- Parameters:
-
| string | $clientID | - The new clientID. |
- Returns:
- $this
Set the DW-value for this RiakClient. See setR(...) for a description of how these values are used.
- Parameters:
-
| integer | $dw | - The DW value. |
- Returns:
- $this
Set the R-value for this RiakClient. This value will be used for any calls to get(...) or getBinary(...) where where 1) no R-value is specified in the method call and 2) no R-value has been set in the RiakBucket.
- Parameters:
-
- Returns:
- $this
Set the W-value for this RiakClient. See setR(...) for a description of how these values are used.
- Parameters:
-
- Returns:
- $this
The documentation for this class was generated from the following file: