Book Image

Redis 4.x Cookbook

Book Image

Redis 4.x Cookbook

Overview of this book

Redis is considered the world's most popular key-value store database. Its versatility and the wide variety of use cases it enables have made it a popular choice of database for many enterprises. Based on the latest version of Redis, this book provides both step-by-step recipes and relevant the background information required to utilize its features to the fullest. It covers everything from a basic understanding of Redis data types to advanced aspects of Redis high availability, clustering, administration, and troubleshooting. This book will be your great companion to master all aspects of Redis. The book starts off by installing and configuring Redis for you to get started with ease. Moving on, all the data types and features of Redis are introduced in detail. Next, you will learn how to develop applications with Redis in Java, Python, and the Spring Boot web framework. You will also learn replication tasks, which will help you to troubleshoot replication issues. Furthermore, you will learn the steps that need to be undertaken to ensure high availability on your cluster and during production deployment. Toward the end of the book, you will learn the topmost tasks that will help you to troubleshoot your ecosystem efficiently, along with extending Redis by using different modules.
Table of Contents (21 chapters)
Title Page
Packt Upsell
Windows Environment Setup


About the authors

Pengcheng Huang has been working as a software engineer and team lead of the Big Data Infrastructure team at China Minsheng Bank (ranked No.29 in the Top 1000 World Banks in 2017) for more than 5 years providing Big data infrastructure services for the whole bank. Also, as the technical director of Redis at the bank, he devotes much of his energy making better use of Redis in the production environment. He is also a Redis contributor. You can reach him on LinkedIn by searching for gnuhpc.

I want to thank my wife for her support and encouragement. Moreover, thanks to the technical reviewers for their valuable feedback: Domagoj Katavić (Vectra Networks) Igor Malinovskiy (RedisDesktop) Zhao Zhao, Lei Fu, Tielei Zhang (Alibaba) Cong Tang (Tencent) Luyao Mei (Huobi) Hailei Zhang (AutoHome) Peng Liu (HomeLink) Jianchao Wu (Oppo) Huaping Huang (MaiMai) Jinshuai Dou (DiDi) Jianhong Huang (huangz)




Zuofei Wang is an experienced software engineer living in the San Francisco Bay area. With more than 5 years of experience in the software industry, he has worked on projects with different technologies and is currently employed by Airbnb Inc. Zuofei is passionate about learning new things and sharing his knowledge. He also enjoys reading, traveling, and ham radio in his spare time.

About the reviewers

Domagoj Katavic has a master's degree in electronics and computer engineering. Currently, he works at Vectra Networks, a network security company that identifies real-time cyber attacks.

Previously, he has worked at Planet9 Energy (a UK Energy supplier), Codeanywhere (a cloud IDE), and as an assistant professor at FESB, the University of Split, Croatia.




Ihor Malinovskiy is an addicted programmer from Ukraine. He started his career as a web developer in 2009 and has worked in different domains, such as advertising, healthcare, and cloud software, since then. Ihor is an open source enthusiast and was the core developer in an OpenStack project. In 2013, he started his own product—a desktop GUI for Redis, called Redis Desktop Manager.






Packt is searching for authors like you

If you're interested in becoming an author for Packt, please visit and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.