public function setWithInOrderKey($dir, $value, $ttl = 0, $condition = array())
{
$data = array('value' => $value);
if ($ttl) {
$data['ttl'] = $ttl;
}
$request = $this->guzzleclient->post($this->buildKeyUri($dir), null, $data, array('query' => $condition));
$response = $request->send();
$body = $response->json();
return $body;
}