> ## 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.

> [card] [HDEL](https://upstash.com/docs/redis/commands/hash/hdel)
>
> Delete one or more hash fields

> [card] [HEXISTS](https://upstash.com/docs/redis/commands/hash/hexists)
>
> Check if a hash field exists

> [card] [HEXPIRE](https://upstash.com/docs/redis/commands/hash/hexpire)
>
> Set field TTL in seconds

> [card] [HEXPIREAT](https://upstash.com/docs/redis/commands/hash/hexpireat)
>
> Set field expiry as timestamp

> [card] [HEXPIRETIME](https://upstash.com/docs/redis/commands/hash/hexpiretime)
>
> Get field expiry as timestamp

> [card] [HGET](https://upstash.com/docs/redis/commands/hash/hget)
>
> Get the value of a hash field

> [card] [HGETALL](https://upstash.com/docs/redis/commands/hash/hgetall)
>
> Get all fields and values

> [card] [HGETDEL](https://upstash.com/docs/redis/commands/hash/hgetdel)
>
> Get and delete hash fields

> [card] [HGETEX](https://upstash.com/docs/redis/commands/hash/hgetex)
>
> Get fields and set their expiry

> [card] [HINCRBY](https://upstash.com/docs/redis/commands/hash/hincrby)
>
> Increment integer value of a field

> [card] [HINCRBYFLOAT](https://upstash.com/docs/redis/commands/hash/hincrbyfloat)
>
> Increment float value of a field

> [card] [HKEYS](https://upstash.com/docs/redis/commands/hash/hkeys)
>
> Get all fields in a hash

> [card] [HLEN](https://upstash.com/docs/redis/commands/hash/hlen)
>
> Get number of fields in a hash

> [card] [HMGET](https://upstash.com/docs/redis/commands/hash/hmget)
>
> Get values of multiple fields

> [card] [HMSET](https://upstash.com/docs/redis/commands/hash/hmset)
>
> Set multiple hash fields

> [card] [HPERSIST](https://upstash.com/docs/redis/commands/hash/hpersist)
>
> Remove field expiration

> [card] [HPEXPIRE](https://upstash.com/docs/redis/commands/hash/hpexpire)
>
> Set field TTL in milliseconds

> [card] [HPEXPIREAT](https://upstash.com/docs/redis/commands/hash/hpexpireat)
>
> Set field expiry as ms timestamp

> [card] [HPEXPIRETIME](https://upstash.com/docs/redis/commands/hash/hpexpiretime)
>
> Get field expiry as ms timestamp

> [card] [HPTTL](https://upstash.com/docs/redis/commands/hash/hpttl)
>
> Get field TTL in milliseconds

> [card] [HRANDFIELD](https://upstash.com/docs/redis/commands/hash/hrandfield)
>
> Get random fields from a hash

> [card] [HSCAN](https://upstash.com/docs/redis/commands/hash/hscan)
>
> Incrementally iterate hash fields

> [card] [HSET](https://upstash.com/docs/redis/commands/hash/hset)
>
> Set hash field values

> [card] [HSETEX](https://upstash.com/docs/redis/commands/hash/hsetex)
>
> Set fields with expiration

> [card] [HSETNX](https://upstash.com/docs/redis/commands/hash/hsetnx)
>
> Set field only if it doesn't exist

> [card] [HSTRLEN](https://upstash.com/docs/redis/commands/hash/hstrlen)
>
> Get length of a field's value

> [card] [HTTL](https://upstash.com/docs/redis/commands/hash/httl)
>
> Get field TTL in seconds

> [card] [HVALS](https://upstash.com/docs/redis/commands/hash/hvals)
>
> Get all values in a hash


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