Skip to content
masterclass Buddy

Upstash · Method

redis.hset

HSET writes one or more field-value pairs into a Redis hash. It creates the hash key when needed and returns the number of fields that were newly added.

Last updated

Syntax

HSET key field value [field value ...]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • HGET
  • HGETALL
  • HSETEX
  • HSETNX
  • HEXPIRE

Source: HSET - Upstash Documentation. Checked 2026-11-03.