Chapter 1. Getting to know Redis
Listing 1.1. An example showing the SET, GET, and DEL commands in Redis
Listing 1.2. The RPUSH, LRANGE, LINDEX, and LPOP commands in Redis
Listing 1.3. The SADD, SMEMBERS, SISMEMBER, and SREM commands in Redis
Listing 1.4. The HSET, HGET, HGETALL, and HDEL commands in Redis
Listing 1.5. The ZADD, ZRANGE, ZRANGEBYSCORE, and ZREM commands in Redis
Listing 1.6. The article_vote() function
Listing 1.7. The post_article() function
Listing 1.8. The get_articles() function
Listing 1.9. The add_remove_groups() function
Listing 1.10. The get_group_articles() function
Chapter 2. Anatomy of a Redis web application
Listing 2.1. The check_token() function
Listing 2.2. The update_token() function
Listing 2.3. The clean_sessions() function
Listing 2.4. The add_to_cart() function
Listing 2.5. The clean_full_sessions() function
Listing 2.6. The cache_request() function
Listing 2.7. The schedule_row_cache() function
Listing 2.8. The cache_rows() daemon function
Listing 2.9. The updated update_token() function
Listing 2.10. The rescale_viewed() daemon function
Listing 2.11. The can_cache() function
Chapter 3. Commands in Redis
Listing 3.1. A sample interaction showing INCR and DECR operations in Redis
Listing 3.2. A sample interaction showing substring and bit operations in Redis
Listing 3.3. A sample interaction showing LIST push and pop commands in Redis
Listing 3.4. Blocking LIST pop and movement commands in Redis