HVALS(3valkey)
π HVALS(3valkey) β the Valkey Command Manual, bestie edition π
okay so hi!! welcome to the HVALS page of the Valkey Command Manual π this one is short, sweet, and honestly? iconic. let's get into it.
β¨ NAME β¨
hvals β Returns all values in a hash.
like, all of them. every single value. the whole vibe check of your hash's value column π
πΈ SYNOPSIS πΈ
HVALS key
that's it. one arg. we love a low-effort queen π
π¦ DESCRIPTION π¦
Returns all values in the hash stored at key.
that's the whole thing bestie, no cap. you hand it a key, it hands you back every value chillin' in that hash. keys stay home, only values get to come to the party β¨
π REPLY π
valkey-protocol(7) Array reply: a list of values in the hash, or an empty list when the key does not exist.
so yeah β you get an array. if the key isn't a thing that exists? you get an empty list, not an error. she's polite like that π«Ά
π₯ COMPLEXITY π₯
O(N) where N is the size of the hash.
translation: bigger hash = more work. it scales with how much stuff you got in there, fr fr.
π ACL CATEGORIES π
@hash @read @slow
three lil badges she carries around: hash-adjacent, read-only, and lowkey slow. periodt.
π HISTORY π
- Available since: 2.0.0
she's been here since 2.0.0. a legend. a veteran. main character energy since day one π
π EXAMPLES π
127.0.0.1:6379> HSET myhash field1 "Hello"
(integer) 1
127.0.0.1:6379> HSET myhash field2 "World"
(integer) 1
127.0.0.1:6379> HVALS myhash
1) "Hello"
2) "World"
see how that works?? we set two fields, then HVALS just hands back "Hello" and "World" like it's nothing. ate. no crumbs. πβ¨
π§ SEE ALSO π§
hdel(3valkey)hexists(3valkey)hexpire(3valkey)hexpireat(3valkey)hexpiretime(3valkey)hget(3valkey)hgetall(3valkey)hgetex(3valkey)hincrby(3valkey)hincrbyfloat(3valkey)hkeys(3valkey)hlen(3valkey)hmget(3valkey)hmset(3valkey)hpersist(3valkey)hpexpire(3valkey)hpexpireat(3valkey)hpexpiretime(3valkey)hpttl(3valkey)hrandfield(3valkey)hscan(3valkey)hset(3valkey)hsetex(3valkey)hsetnx(3valkey)hstrlen(3valkey)httl(3valkey)
the whole hash fam, together always π go read them too, iykyk.
okay that's the page!! mwah π this was HVALS(3valkey) from Valkey version 9.0.0, dated 2025-10-21 β stay slaying, bestie, and remember: values only, keys are not invited πβ¨π
π¦ where this page comes from
- fedora 44: valkey-doc 9.0.3-2.fc44 Β· CC-BY-SA-4.0
- fedora 44: valkey-doc 9.0.6-1.fc44 Β· CC-BY-SA-4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms