$client->setRoot('/linkorb'); $client->set('key1, 'value1'); the new key is /linkorb/key1
public function setRoot($root) { if (strpos('/', $root) === false) { $root = '/' . $root; } $this->root = rtrim($root, '/'); return $this; }
protected function tearDown() { $this->client->setRoot('/'); $this->client->rmdir($this->dirname, true); }