HVALS(3valkey)

πŸ“¦
version 9.0.6 Β· 2 versions
, in fedora 44

πŸ’– 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 🧚

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