$command = (new Command\Builder\IncrementCounter($riak))
->buildLocation($user_name, 'user_visit_count', 'visit_counters')
->build();
$response = $command->execute();
$counter = $response->getCounter();
Mostrar archivo
Open project: basho/riak-php-client
Class Usage Examples
Property | Type | Description | |
---|---|---|---|
$increment | integer | null |
Method | Description | |
---|---|---|
build ( ) : Basho\Riak\Command\DataType\Counter\Store | ||
getIncrement ( ) : integer | null | ||
validate ( ) | ||
withIncrement ( integer $increment = 1 ) |
public build ( ) : Basho\Riak\Command\DataType\Counter\Store | ||
return | Basho\Riak\Command\DataType\Counter\Store |