O'Reilly logo

Redis Applied Design Patterns by Arun Chinnachamy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Data Types in Redis

In Chapter 2, Transactions and Locks, we learned about the transactions and locks in Redis. However, in order to leverage the full potential of Redis, one needs to understand the basic data types built into it. The data types are very powerful and provide full atomic operations for data manipulation.

These data types are flexible and can be used or exploited in a lot of ways. In order to design solutions using Redis, we need to understand what each data type means, how to use them, when to use a data type, and more importantly, when not to use a data type.

In this chapter, we will focus on the following topics:

  • Understanding the different data types in Redis
  • When to use each data type
  • Key expiry in Redis
  • Key namespace ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required