public function exists($value, &$res)
{
if (!is_string($value) && !is_int($value) && !is_array($value)) {
$this->errorno = self::ERR_INPUT_PARAM;
$this->error = self::MSG_TYPE_NOT_SUPPORTED;
return $this->errorno;
}
$status = $this->client->apply($this->key, 'llist', 'exists', array($this->bin, $value), $res);
$res = (bool) $res;
$this->processStatusCode($status);
return $this->errorno;
}