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();
Exemplo n.º 1
0
 public function __construct(Builder $builder)
 {
     $this->riak = $builder->getConnection();
     $this->parameters = $builder->getParameters();
     $this->headers = $builder->getHeaders();
     $this->verbose = $builder->getVerbose();
 }
Exemplo n.º 2
0
 public function __construct(Riak $riak)
 {
     parent::__construct($riak);
     $this->parameters['wt'] = 'json';
     $this->parameters['rows'] = 10;
     $this->parameters['start'] = 0;
 }
Exemplo n.º 3
0
 public function __construct(Riak $riak)
 {
     parent::__construct($riak);
 }
Exemplo n.º 4
0
 public function __construct(Riak $riak)
 {
     parent::__construct($riak);
     $this->headers['Content-Type'] = self::CONTENT_TYPE_JSON;
 }
Exemplo n.º 5
0
 public function __construct(Riak $riak)
 {
     parent::__construct($riak);
     $this->headers['Accept'] = 'multipart/mixed, */*';
 }