Aerospike\LDT\LList::exists PHP Method

exists() public method

Atomic elements (integer, string) will be directly compared. In complex types (array) the value of a key named 'key' is used for comparison.
public exists ( integer | string $value, boolean &$res ) : integer
$value integer | string
$res boolean
return integer status code of the operation
    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;
    }