Class IncrementCounter
Used to increment counter objects in Riak by the provided positive / negative integer
$command = (new Command\Builder\IncrementCounter($riak)) ->buildLocation($user_name, 'user_visit_count', 'visit_counters') ->build(); $response = $command->execute($command); $counter = $response->getCounter();
- Basho\Riak\Command\Builder
-
Basho\Riak\Command\Builder\IncrementCounter
implements
Basho\Riak\Command\BuilderInterface
uses
Basho\Riak\Command\Builder\LocationTrait
Namespace: Basho\Riak\Command\Builder
Author: Christopher Mancini
Located at Riak/Command/Builder/IncrementCounter.php
Author: Christopher Mancini
Located at Riak/Command/Builder/IncrementCounter.php
Methods summary
public
|
|
public
boolean
|
|
public
|
|
public
integer|null
|
Methods inherited from Basho\Riak\Command\Builder
__construct(),
getConnection(),
getParameters(),
getVerbose(),
required(),
withParameter(),
withParameters(),
withVerboseMode()
Methods used from Basho\Riak\Command\Builder\LocationTrait
Constants summary
Constants inherited from Basho\Riak\Command\BuilderInterface
Properties summary
protected
integer|null
|
$increment
|
#
NULL
|