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!
Commonly used database software
What are the in-memory databases?
Which one has faster reading speed, mongodb or redis?
How to use redis as a cache server
How redis solves data consistency
How do mysql and redis ensure double-write consistency?
What data does redis cache generally store?
What are the 8 data types of redis