Skip to main content

HDEL

Delete one or more hash fields

HEXISTS

Check if a hash field exists

HEXPIRE

Set field TTL in seconds

HEXPIREAT

Set field expiry as timestamp

HEXPIRETIME

Get field expiry as timestamp

HGET

Get the value of a hash field

HGETALL

Get all fields and values

HGETDEL

Get and delete hash fields

HGETEX

Get fields and set their expiry

HINCRBY

Increment integer value of a field

HINCRBYFLOAT

Increment float value of a field

HKEYS

Get all fields in a hash

HLEN

Get number of fields in a hash

HMGET

Get values of multiple fields

HMSET

Set multiple hash fields

HPERSIST

Remove field expiration

HPEXPIRE

Set field TTL in milliseconds

HPEXPIREAT

Set field expiry as ms timestamp

HPEXPIRETIME

Get field expiry as ms timestamp

HPTTL

Get field TTL in milliseconds

HRANDFIELD

Get random fields from a hash

HSCAN

Incrementally iterate hash fields

HSET

Set hash field values

HSETEX

Set fields with expiration

HSETNX

Set field only if it doesn’t exist

HSTRLEN

Get length of a field’s value

HTTL

Get field TTL in seconds

HVALS

Get all values in a hash