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

<CardGroup cols={2}>
  <Card title="HDEL" href="/docs/redis/commands/hash/hdel">Delete one or more hash fields</Card>
  <Card title="HEXISTS" href="/docs/redis/commands/hash/hexists">Check if a hash field exists</Card>
  <Card title="HEXPIRE" href="/docs/redis/commands/hash/hexpire">Set field TTL in seconds</Card>
  <Card title="HEXPIREAT" href="/docs/redis/commands/hash/hexpireat">Set field expiry as timestamp</Card>
  <Card title="HEXPIRETIME" href="/docs/redis/commands/hash/hexpiretime">Get field expiry as timestamp</Card>
  <Card title="HGET" href="/docs/redis/commands/hash/hget">Get the value of a hash field</Card>
  <Card title="HGETALL" href="/docs/redis/commands/hash/hgetall">Get all fields and values</Card>
  <Card title="HGETDEL" href="/docs/redis/commands/hash/hgetdel">Get and delete hash fields</Card>
  <Card title="HGETEX" href="/docs/redis/commands/hash/hgetex">Get fields and set their expiry</Card>
  <Card title="HINCRBY" href="/docs/redis/commands/hash/hincrby">Increment integer value of a field</Card>
  <Card title="HINCRBYFLOAT" href="/docs/redis/commands/hash/hincrbyfloat">Increment float value of a field</Card>
  <Card title="HKEYS" href="/docs/redis/commands/hash/hkeys">Get all fields in a hash</Card>
  <Card title="HLEN" href="/docs/redis/commands/hash/hlen">Get number of fields in a hash</Card>
  <Card title="HMGET" href="/docs/redis/commands/hash/hmget">Get values of multiple fields</Card>
  <Card title="HMSET" href="/docs/redis/commands/hash/hmset">Set multiple hash fields</Card>
  <Card title="HPERSIST" href="/docs/redis/commands/hash/hpersist">Remove field expiration</Card>
  <Card title="HPEXPIRE" href="/docs/redis/commands/hash/hpexpire">Set field TTL in milliseconds</Card>
  <Card title="HPEXPIREAT" href="/docs/redis/commands/hash/hpexpireat">Set field expiry as ms timestamp</Card>
  <Card title="HPEXPIRETIME" href="/docs/redis/commands/hash/hpexpiretime">Get field expiry as ms timestamp</Card>
  <Card title="HPTTL" href="/docs/redis/commands/hash/hpttl">Get field TTL in milliseconds</Card>
  <Card title="HRANDFIELD" href="/docs/redis/commands/hash/hrandfield">Get random fields from a hash</Card>
  <Card title="HSCAN" href="/docs/redis/commands/hash/hscan">Incrementally iterate hash fields</Card>
  <Card title="HSET" href="/docs/redis/commands/hash/hset">Set hash field values</Card>
  <Card title="HSETEX" href="/docs/redis/commands/hash/hsetex">Set fields with expiration</Card>
  <Card title="HSETNX" href="/docs/redis/commands/hash/hsetnx">Set field only if it doesn't exist</Card>
  <Card title="HSTRLEN" href="/docs/redis/commands/hash/hstrlen">Get length of a field's value</Card>
  <Card title="HTTL" href="/docs/redis/commands/hash/httl">Get field TTL in seconds</Card>
  <Card title="HVALS" href="/docs/redis/commands/hash/hvals">Get all values in a hash</Card>
</CardGroup>


## Related topics

- [Document Updates](/docs/redis/search/document-updates.md)
- [Overview](/docs/redis/sdks/py/commands/overview.md)
- [HGETALL](/docs/redis/commands/hash/hgetall.md)
- [HRANDFIELD](/docs/redis/commands/hash/hrandfield.md)
