comando Redis Hmset
comando Redis Hmset mentre una pluralità di campo-valore (campo - il valore) del set per la tabella di hash.
Questo comando sovrascrive la tabella di hash che esiste già in campo.
Se la tabella di hash non esiste, si crea una tabella hash vuoto ed eseguire operazioni HMSET.
grammatica
Redis Hmset sintassi dei comandi di base è la seguente:
redis 127.0.0.1:6379> HMSET KEY_NAME FIELD1 VALUE1 ...FIELDN VALUEN
versioni disponibili
> = 2.0.0
Valore di ritorno
Se il comando ha esito positivo, restituisce OK.
Esempi
redis 127.0.0.1:6379> HMSET myhash field1 "Hello" field2 "World" OK redis 127.0.0.1:6379> HGET myhash field1 "Hello" redis 127.0.0.1:6379> HGET myhash field2 "World"