use Basho\Riak\Command; use Basho\Riak\Bucket; use Basho\Riak\Location; $bucket = new Bucket('users'); $command = (new Command\Builder(Command::STORE_OBJECT)) ->withObject(new Object('test_data')) ->atLocation(new Location('test_key', $bucket)) ->build();
示例#1
0
 public function __construct(Builder $builder)
 {
     $this->riak = $builder->getConnection();
     $this->parameters = $builder->getParameters();
     $this->headers = $builder->getHeaders();
     $this->verbose = $builder->getVerbose();
 }
示例#2
0
 public function __construct(Riak $riak)
 {
     parent::__construct($riak);
     $this->parameters['wt'] = 'json';
     $this->parameters['rows'] = 10;
     $this->parameters['start'] = 0;
 }
示例#3
0
 public function __construct(Riak $riak)
 {
     parent::__construct($riak);
 }
示例#4
0
 public function __construct(Riak $riak)
 {
     parent::__construct($riak);
     $this->headers['Content-Type'] = self::CONTENT_TYPE_JSON;
 }
示例#5
0
 public function __construct(Riak $riak)
 {
     parent::__construct($riak);
     $this->headers['Accept'] = 'multipart/mixed, */*';
 }