English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Il comando Redis Hmset viene utilizzato per impostare contemporaneamente più coppie field-value (campo-valore) nella tabella hash.
Questo comando sovrascriverà i campi esistenti nella tabella hash.
Se la tabella hash non esiste, viene creata una tabella hash vuota e viene eseguita l'operazione HMSET.
Sintassi del comando redis Hmset di base è la seguente:
redis 127.0.0.1:6379> HMSET KEY_NAME FIELD1 VALUE1 ...FIELDN VALUEN
>= 2.0.0
Se il comando viene eseguito con successo, viene restituito OK .
redis 127.0.0.1:6379> HMSET myhash field1 "Ciao" field2 "Mondo" OK redis 127.0.0.1:6379> HGET myhash field1 "Ciao" redis 127.0.0.1:6379> HGET myhash field2 "Mondo"