$command = (new Command\Builder\FetchCounter($riak))
->buildLocation($user_name, 'user_visit_count', 'visit_counters')
->build();
$response = $command->execute();
$counter = $response->getCounter();
Show file
Open project: basho/riak-php-client
Class Usage Examples
Method | Description | |
---|---|---|
build ( ) : Basho\Riak\Command\DataType\Counter\Fetch; | ||
validate ( ) |
public build ( ) : Basho\Riak\Command\DataType\Counter\Fetch; | ||
return | Basho\Riak\Command\DataType\Counter\Fetch; |