Commands.app

HSET

Hashes

Set hash field value

Examples
Common usage examples

Set single field

HSET user:1 name "John"

Set multiple fields

HSET user:1 name "John" email "john@example.com" age 30
Notes
  • Creates hash if doesn't exist
Related Commands
You might also find these useful