List of Figures

 

Chapter 1. Getting to know Redis

Figure 1.1. An example of a STRING, world, stored under a key, hello

Figure 1.2. An example of a LIST with three items under the key, list-key. Note that item can be in the list more than once.

Figure 1.3. An example of a SET with three items under the key, set-key

Figure 1.4. An example of a HASH with two keys/values under the key hash-key

Figure 1.5. An example of a ZSET with two members/scores under the key zset-key

Figure 1.6. Reddit, a site that offers the ability to vote on articles

Figure 1.7. Stack Overflow, a site that offers the ability to vote on questions

Figure 1.8. An example article stored as a HASH for our article voting system

Figure 1.9. Two sorted sets representing time-ordered and score-ordered article indexes

Figure 1.10. Some users who have voted for article 100408

Figure 1.11. What happens to our structures when user 115423 votes for article 100408

Figure 1.12. The newly created ZSET, score:programming, is an intersection of the SET and ZSET. Intersection will only keep members from SETs/ZSETs when the members exist in all of the input SETs/ ZSETs. When intersecting SETs and ZSETs, SETs act as though they have a score of 1, so when intersecting with an aggregate of MAX, we’re only using the scores from the score: input ZSET, because they’re all greater than 1.

Chapter 2. Anatomy of a Redis web application

Figure 2.1. A cached database row for an item to be sold online

Chapter 3. Commands in Redis