Redis provides five data types, each type has its underlying data structure: String: SDS (binary safe, space efficient) Hash: Hash table (key-value pair storage) List: Doubly linked list ( Ordered data set) Set: Integer set or hash table (unduplicated elements) Ordered set: Jump list (sort by score and range search)
Redis five data types and their underlying structures
Redis provides five basic data types, each type has a different underlying data structure to store and operate data.
1. String
2. Hash
3. List
4. Set
##5. Ordered set (zset)
The above is the detailed content of Redis's five data types correspond to the underlying structure. For more information, please follow other related articles on the PHP Chinese website!