Database / ValKey Interview questions
What are the data types supported by Valkey?
Valkey stores every value under a key, but the value itself can take several distinct data types beyond a plain string.
- String - text, numbers, or binary-safe blobs.
- List - an ordered, linked sequence of values.
- Hash - a field-value map, good for representing objects.
- Set - an unordered collection of unique members.
- Sorted Set (ZSet) - unique members ranked by a score.
- Stream - an append-only log of time-ordered entries.
- Bitmap / Bitfield - compact bit-level storage.
- HyperLogLog - a probabilistic structure for approximate counting.
- Geospatial - coordinates stored on top of a sorted set.
Choosing the right type is often the biggest factor in both performance and memory efficiency.
More Related questions...