/** * @param $key * @param $timeout int * @return */ public function lock($key, $timeout = 0) { return $this->client->lock($this->encodeKey($key), $timeout); }