VALKEY-DATA-TYPES(7)
π VALKEY-DATA-TYPES(7) π
okay bestie, welcome to the Valkey Manual, valkey-data-types(7) section β yes the whole thing is literally called that, i don't make the rules π
β¨ NAME β¨
valkey-data-types β data types, but make it a whole personality π
πΈ DESCRIPTION πΈ
So. Valkey is a data structure server π
Like, at its core, it hands you a whole collection of native data types that solve basically every problem you could ever have β from valkey-client-side-caching(7) caching, to valkey-lists(7) queuing, to valkey-streams-intro(7) event processing. iconic behavior, honestly.
Below is a lil short description of each data type, with links to the bigger overviews and command references. π¦
If you wanna try a comprehensive tutorial for each data structure, go check out their overview pages below. no cap, they ate. π₯
π Strings
valkey-strings(7) are the most basic Valkey data type β literally just a sequence of bytes. the starter pack, the vanilla of the group chat. For more info, see:
valkey-strings(7)Overview of Stringsvalkey-commands(7)String command reference
π Lists
valkey-lists(7) are lists of strings sorted by insertion order. first in, best dressed. For more info, see:
valkey-lists(7)Overview of Listsvalkey-commands(7)List command reference
π Sets
valkey-sets(7) are unordered collections of unique strings that act like the sets from your favorite programming language (for example, Java HashSets, Python sets, and so on). With a Set, you can add, remove, and test for existence in O(1) time β in other words, regardless of the number of set elements. constant time, no matter how many elements, we love to see it. For more info, see:
valkey-sets(7)Overview of Setsvalkey-commands(7)Set command reference
π Hashes
valkey-hashes(7) are record types modeled as collections of field-value pairs. As such, Hashes resemble Python dictionaries, Java HashMaps, and Ruby hashes. it's giving "you already know this from another language". For more info, see:
valkey-hashes(7)Overview of Hashesvalkey-commands(7)Hashes command reference
π Sorted sets
valkey-sorted-sets(7) are collections of unique strings that maintain order by each string's associated score. main character energy, ranked by vibes (scores). For more info, see:
valkey-sorted-sets(7)Overview of Sorted Setsvalkey-commands(7)Sorted Set command reference
π¦ Streams
A valkey-streams-intro(7) Stream is a data structure that acts like an append-only log. Streams help record events in the order they occur and then syndicate them for processing. the timeline of your app, fr fr. For more info, see:
valkey-streams-intro(7)Overview of Streamsvalkey-commands(7)Streams command reference
πΈ Geospatial indexes
valkey-geospatial(7) Geospatial indexes are useful for finding locations within a given geographic radius or bounding box. find your besties within walking distance. For more info, see:
valkey-geospatial(7)Overview of Geospatial indexesvalkey-commands(7)Geospatial indexes command reference
β Bitmaps
valkey-bitmaps(7) let you perform bitwise operations on strings. For more info, see:
valkey-bitmaps(7)Overview of Bitmapsvalkey-commands(7)Bitmap command reference
π§ Bitfields
valkey-bitfields(7) efficiently encode multiple counters in a string value. Bitfields provide atomic get, set, and increment operations and support different overflow policies. multiple counters, one string, atomic everything β obsessed. For more info, see:
valkey-bitfields(7)Overview of Bitfields- The
BITFIELDcommand.
π HyperLogLog
The valkey-hyperloglogs(7) HyperLogLog data structures provide probabilistic estimates of the cardinality (i.e., number of elements) of large sets. so like, "roughly how many things are in here" but make it tiny. For more info, see:
valkey-hyperloglogs(7)Overview of HyperLogLogvalkey-commands(7)HyperLogLog command reference
π₯ Bloom Filter
valkey-bloomfilters(7) Bloom filters are a space efficient probabilistic data structure that allows adding elements and checking if item/s are definitely not present, or if there is a possibility they exist (with the configured false positive rate). π the way it can tell you "nope, definitely not here" with full confidence but "maybe?" otherwise.
The Bloom filter data type / command support is provided by the valkey-bloom module. For more info, see:
valkey-bloomfilters(7)Overview of Bloom Filtersvalkey-commands(7)Bloom filter command reference- Valkey-bloom module on GitHub
π Extensions
Wanna extend the features provided by the included data types? use one of these options:
- Write your own custom
valkey-programmability(7)server-side functions in Lua. - Write your own Valkey module using the
valkey-modules-intro(7)modules API or check out thehttps://valkey.io/modules/.
that's the whole vibe check, bestie β every data type accounted for, nothing skipped, nothing invented. π«Ά
π this lil rewrite rode in with version 9.0.0, dated 2025-10-21, straight outta the Valkey Manual β mwah, periodt. π
π¦ 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