Table of Contents


Chapter 1: Getting Started (The Baby Steps)

  • Installation
  • Hello Redis (command-line interface examples)
  • Installing Node.js
  • JavaScript syntax quick reference guide
  • Hello World with Node.js and Redis
  • Redis data types
  • Summary

Chapter 2: Advanced Data Types (Earning a Black Belt)

  • Sets
  • Sorted Sets
  • Bitmaps
  • HyperLogLogs
  • Summary

Chapter 3: Time Series (A Collection of Observations)

  • Building the foundation
  • Optimizing with Hashes
  • Adding uniqueness with Sorted Sets and HyperLogLog
  • Summary

Chapter 4: Commands (Where the Wild Things Are)

  • Pub/Sub
  • Transactions
  • Pipelines
  • Scripting
  • Miscellaneous commands
  • Data type optimizations
  • Summary

Chapter 5: Clients for Your Favorite Language (Become a Redis

    Polyglot)
  • PHP
  • Python
  • Ruby
  • Summary

Chapter 6: Common Pitfalls (Avoiding Traps)

  • The wrong data type for the job
  • Multiple Redis databases
  • Keys without a namespace
  • Using Swap
  • Not planning and configuring the memory properly
  • An inappropriate persistence strategy
  • Summary

Chapter 7: Security Techniques (Guard Your Data)

  • The basic security
  • Networking security
  • Encrypting client-to-server communication
  • Summary

Chapter 8: Scaling Redis (Beyond a Single Instance)

  • Persistence
  • Replication
  • Partitioning
  • Automatic sharding with twemproxy
  • Summary

Chapter 9: Redis Cluster and Redis Sentinel (Collective

    Intelligence)
  • The CAP theorem
  • Redis Sentinel
  • Redis Cluster
  • Summary