$command = (new Command\Builder\StoreObject($riak))
->buildObject('{"firstName":"John","lastName":"Doe","email":"[email protected]"}')
->buildBucket('users')
->build();
$response = $command->execute();
$user_location = $response->getLocation();
파일 보기
프로젝트 열기: basho/riak-php-client
1 사용 예제들
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$decodeAsAssociative | boolean |
메소드 | 설명 | |
---|---|---|
build ( ) : Basho\Riak\Command\Object\Store | ||
getDecodeAsAssociative ( ) : boolean | Fetch the setting for decodeAsAssociative. | |
validate ( ) | ||
withDecodeAsAssociative ( ) | Tells the client to decode the data as an associative array instead of a PHP stdClass object. |
public build ( ) : Basho\Riak\Command\Object\Store | ||
리턴 | Basho\Riak\Command\Object\Store |
public getDecodeAsAssociative ( ) : boolean | ||
리턴 | boolean |
public withDecodeAsAssociative ( ) |