Now Redis is used to cache the data of these 10 tables. For the design of the data structure, which of the following is the best design?

Suppose there is an application, there are 10 tables, each table has tens of millions of records, and the number of fields is about 20.

Now Redis is used to cache the data of these 10 tables. For the design of the data structure, which of the following is the best design?
A . A hash structure is adopted, and a table uses a hash KEY, and a row in the table records a field for the hash KE
C . Using a hash structure, each row record of each table uses a hash KEY, the field of the hash KEY corresponds to the field of the table record, and each table is designed with a different prefix to distinguish it.
D . Using string structure, each field in each row of each table uses a KE
F . Using string structure, each row of each table uses a KEY, and value is the concatenated value of all the fields in a row of the table.

Answer: B

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments