Introduction
Valkey is an open-source data store platform that can be used as a database, cache, and event streaming engine. It specifically focuses on serving requests with low latency; hence, it is designed to work in memory rather than on disk.
Although the disk is not used for its active operations, because of the volatile nature of the memory, it is used to persist the data in the event that it is not frequently used, but it requires long-term storage as it may be accessed later.
Valkey currently supports the following data types:
-
String
It stores a sequence of bytes up to 512MB.
-
List
It stores list of strings by insertion order.
-
Set
It stores unordered collections of unique strings.
-
Sorted Set
It stores ordered collections of unique strings.
-
Hash
It stores collections of field-value pairs.
-
HyperLogLog
It stores the cardinality of a set.
-
Bitmap
It performs set of bitwise operations on strings.
-
Bitfield
It stores integer values of arbitrary bit length.
-
Geospatial
It stores geographic coordinates and search for them.
-
Stream
It stores the data in the append-only log fashion.
-
JSON
It stores JSON values.
-
Time Series
It stores time series data.
-
Bloom Filter
It checks for presence of an element in a set.
-
Cuckoo Filter
It checks for presence of an element in a set of buckets.
-
Top-K
It allows you to find the most frequent items in a data stream.
-
T-Digest
It allows you to estimate the percentile of a data stream.
-
Count-min Sketch
It estimates the frequency of an element in a data stream.
-
Pub/Sub
It stores the data in publish-subscribe messaging pattern.