Redis Tutorial for Beginners – 9 | Redis Hashes with Node.js



Redis Tutorial for Beginners – 9 | Redis Hashes with Node.js

Redis Tutorial for Beginners - 9 | Redis Hashes with Node.js

Redis hashes are record types structured as collections of field-value pairs.

Basic commands

HSET sets the value of one or more fields on a hash.
HGET returns the value at a given field.
HMGET returns the values at one or more given fields.
HGETALL returns the field value pair for keys.
HINCRBY increments the value at a given field by the integer provided.
HEXISTS checks whether field is present in keys.