> ## Documentation Index
> Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Hash commands

> Commands for storing and manipulating field-value collections.

> **[HDEL](/docs/redis/commands/hash/hdel)**
>
> Delete one or more hash fields

> **[HEXISTS](/docs/redis/commands/hash/hexists)**
>
> Check if a hash field exists

> **[HEXPIRE](/docs/redis/commands/hash/hexpire)**
>
> Set field TTL in seconds

> **[HEXPIREAT](/docs/redis/commands/hash/hexpireat)**
>
> Set field expiry as timestamp

> **[HEXPIRETIME](/docs/redis/commands/hash/hexpiretime)**
>
> Get field expiry as timestamp

> **[HGET](/docs/redis/commands/hash/hget)**
>
> Get the value of a hash field

> **[HGETALL](/docs/redis/commands/hash/hgetall)**
>
> Get all fields and values

> **[HGETDEL](/docs/redis/commands/hash/hgetdel)**
>
> Get and delete hash fields

> **[HGETEX](/docs/redis/commands/hash/hgetex)**
>
> Get fields and set their expiry

> **[HINCRBY](/docs/redis/commands/hash/hincrby)**
>
> Increment integer value of a field

> **[HINCRBYFLOAT](/docs/redis/commands/hash/hincrbyfloat)**
>
> Increment float value of a field

> **[HKEYS](/docs/redis/commands/hash/hkeys)**
>
> Get all fields in a hash

> **[HLEN](/docs/redis/commands/hash/hlen)**
>
> Get number of fields in a hash

> **[HMGET](/docs/redis/commands/hash/hmget)**
>
> Get values of multiple fields

> **[HMSET](/docs/redis/commands/hash/hmset)**
>
> Set multiple hash fields

> **[HPERSIST](/docs/redis/commands/hash/hpersist)**
>
> Remove field expiration

> **[HPEXPIRE](/docs/redis/commands/hash/hpexpire)**
>
> Set field TTL in milliseconds

> **[HPEXPIREAT](/docs/redis/commands/hash/hpexpireat)**
>
> Set field expiry as ms timestamp

> **[HPEXPIRETIME](/docs/redis/commands/hash/hpexpiretime)**
>
> Get field expiry as ms timestamp

> **[HPTTL](/docs/redis/commands/hash/hpttl)**
>
> Get field TTL in milliseconds

> **[HRANDFIELD](/docs/redis/commands/hash/hrandfield)**
>
> Get random fields from a hash

> **[HSCAN](/docs/redis/commands/hash/hscan)**
>
> Incrementally iterate hash fields

> **[HSET](/docs/redis/commands/hash/hset)**
>
> Set hash field values

> **[HSETEX](/docs/redis/commands/hash/hsetex)**
>
> Set fields with expiration

> **[HSETNX](/docs/redis/commands/hash/hsetnx)**
>
> Set field only if it doesn't exist

> **[HSTRLEN](/docs/redis/commands/hash/hstrlen)**
>
> Get length of a field's value

> **[HTTL](/docs/redis/commands/hash/httl)**
>
> Get field TTL in seconds

> **[HVALS](/docs/redis/commands/hash/hvals)**
>
> Get all values in a hash


## Related topics

- [Document Updates](/docs/redis/search/document-updates.md)
- [Changelog](/docs/redis/overall/changelog.md)
- [Listen Keyspace Notifications](/docs/redis/howto/keyspacenotifications.md)
- [Key-Based Locking](/docs/redis/features/key-locking.md)
- [HSETNX](/docs/redis/commands/hash/hsetnx.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.