English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Il comando Redis Hexists viene utilizzato per verificare l'esistenza di un campo specifico nella hash table.
Sintassi base del comando redis Hexists
redis 127.0.0.1:6379> HEXISTS KEY_NAME FIELD_NAME
>= 2.0.0
Se il hash table contiene il campo specificato, viene restituito 1 . Se il hash table non contiene il campo specificato o la chiave non esiste, viene restituito 0 .
redis 127.0.0.1:6379> HSET myhash field1 "foo" (integer) 1 redis 127.0.0.1:6379> HEXISTS myhash field1 (integer) 1 redis 127.0.0.1:6379> HEXISTS myhash field2 (integer) 0