Redis schema
We have used Redis and a few of the data types, so let's now talk about building a Redis schema. I keep making references about how Redis is not a database system, but I feel it is a good shared perspective to discuss building a schema. Databases keep data in rows with multiple columns for each row. In addition to this, you can normalize the data and keep a reference to another row that relates keeping data separate. The end result is the same though; whether or not the database is normalized, the data is a row with multiple columns that store values. We have seen from our example application that you cannot store data this way with Redis. We will now cover some ways to build a Redis schema. The example schema we will build is for ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access