$command = (new Command\Builder\IncrementCounter($riak))
->buildLocation($user_name, 'user_visit_count', 'visit_counters')
->build();
$response = $command->execute();
$counter = $response->getCounter();
파일 보기
프로젝트 열기: basho/riak-php-client
1 사용 예제들
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$increment | integer | null |
메소드 | 설명 | |
---|---|---|
build ( ) : Basho\Riak\Command\DataType\Counter\Store | ||
getIncrement ( ) : integer | null | ||
validate ( ) | ||
withIncrement ( integer $increment = 1 ) |
public build ( ) : Basho\Riak\Command\DataType\Counter\Store | ||
리턴 | Basho\Riak\Command\DataType\Counter\Store |