VALKEY-DATA-TYPES(7)

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

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

πŸŽ€ Lists

valkey-lists(7) are lists of strings sorted by insertion order. first in, best dressed. For more info, see:

🌈 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:

πŸ“ 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:

πŸ‘‘ 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:

πŸ¦‹ 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:

🌸 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:

⭐ Bitmaps

valkey-bitmaps(7) let you perform bitwise operations on strings. For more info, see:

🧚 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:

πŸ’œ 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:

πŸ”₯ 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:

🌈 Extensions

Wanna extend the features provided by the included data types? use one of these options:

  1. Write your own custom valkey-programmability(7) server-side functions in Lua.
  2. Write your own Valkey module using the valkey-modules-intro(7) modules API or check out the https://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