CANCEL
Subscription
0
Your Cart
(0 item)
You have no products in your basket yet
Save more on your purchases!
Buy 3-4 products and each title is $7.99
Buy 5+ products and each title is $4.99
Savings automatically calculated. No voucher code required.
Checkout
Account
Sign in
New User?
Create Account
Your Account
Your Orders
Change country
United States
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
South Africa
Thailand
Ukraine
Switzerland
Slovakia
Luxembourg
Hungary
Romania
Denmark
Ireland
Estonia
Belgium
Italy
Finland
Cyprus
Lithuania
Latvia
Malta
Netherlands
Portugal
Slovenia
Sweden
Argentina
Colombia
Ecuador
Indonesia
Mexico
New Zealand
Norway
South Korea
Taiwan
Turkey
Czechia
Austria
Greece
Isle of Man
Bulgaria
Japan
Philippines
Poland
Singapore
Egypt
Chile
Malaysia
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
SALE ENDS IN
0
Days
:
00
Hours
:
00
Minutes
:
00
Seconds
GO TO
TOP
You're reading from
Redis 4.x Cookbook
Over 80 hand-picked recipes for effective Redis development and administration
Product type
Paperback
Published in
Feb 2018
Publisher
Packt
ISBN-13
9781783988167
Length
382 pages
Edition
1st Edition
Tools
Redis
Concepts
Database Administration
Table of Contents
(21) Chapters
Title Page
Dedication
Packt Upsell
Foreword
Contributors
Preface
1. Getting Started with Redis
FREE CHAPTER
Introduction
Downloading and installing Redis
Starting and shutting down Redis
Connecting to Redis with redis-cli
Getting server information
Understanding the Redis Event Model
Understanding the Redis protocol
2. Data Types
Introduction
Using the string data type
Using the list data type
Using the hash data type
Using the set data type
Using the sorted set data type
Using the HyperLogLog data type
Using the Geo data type
Managing keys
3. Data Features
Introduction
Using bitmaps
Setting expiration on keys
Using SORT
Using pipelines
Understanding Redis transactions
Using PubSub
Using Lua
Debugging Lua
4. Developing with Redis
Introduction
When to use Redis in your application
Using the correct data types
Using the correct Redis APIs
Connecting to Redis with Java
Connecting to Redis with Python
Connecting to Redis with Spring Data Redis
Writing a MapReduce job for Redis
Writing a Spark job for Redis
5. Replication
Introduction
Setting up Redis replication
Optimizing replication
Troubleshooting replication
6. Persistence
Introduction
Manipulating RDB
Exploring RDB
Manipulating AOF
Exploring AOF
Combining RDB and AOF
7. Setting Up High Availability and Cluster
Introduction
Setting up Sentinel
Testing Sentinel
Administrating Sentinel
Setting up Redis Cluster
Testing Redis Cluster
Administrating Redis Cluster
8. Deploying to a Production Environment
Introduction
Deploying Redis on Linux
Securing Redis
Setting client connection options
Configuring memory policy
Benchmarking
Logging
9. Administrating Redis
Introduction
Managing Redis Server configurations
Operating Redis using bin/redis-cli
Backup and restore
Monitoring memory
Managing clients
Data migration
10. Troubleshooting Redis
Introduction
Health checking in Redis
Identifying slow queries using the SLOWLOG
Troubleshooting latency issues
Troubleshooting memory issues
Troubleshooting crash issues
11. Extending Redis with Redis Modules
Introduction
Loading a Redis module
Writing a Redis module
12. The Redis Ecosystem
Introduction
The Redisson client
Twemproxy
Codis – a proxy-based high-performance Redis Cluster solution
The CacheCloud Redis management system
Pika – a Redis-compatible NoSQL database
13. Windows Environment Setup
1. Other Books You May Enjoy
Leave a review - let other readers know what you think
Index
Chapter 5. Replication
In this chapter, we will cover the following recipes:
Setting up Redis replication
Optimizing replication
Troubleshooting replication
The rest of the chapter is locked
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Start free trial
Previous Section
Section 1 of 5
Next Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Sign up now
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Start free trial
Renews at
$15.99/month
. Cancel anytime
Other recommended products
Related to this chapter
Seven NoSQL Databases in a Week
Read more
This book will help you understand the fundamentals of seven of the most popular NoSQL databases. You will see how the functionalities of each of them differ, while still giving you the same result - a database solution with speed, high performance, and accuracy.
Read more
Mar 2018
10h 16m
Build Your Future-Ready Stack!
Every eBook is
$9.99
- master what's next.
SHOP NOW
Personalised recommendations for you
Based on your interests and search pattern
Mathematics of Machine Learning
Read more
Deepen your theoretical knowledge and enhance your ability to solve complex machine learning problems with structured guidance. Gain the confidence to engage with advanced ML literature and tailor algorithms to meet your project requirements.
Read more
May 2025
24h 20m
Generative AI with Python and PyTorch
Read more
Learn how to create images and text using VAEs, GANs, LSTMs, and transformers. Implement applications in natural language processing and computer vision through practical tutorials.
Read more
Mar 2025
15h 0m
Practical Generative AI with ChatGPT
Read more
This book helps you unlock ChatGPT's potential to make your working life better. From prompt engineering to creating custom GPTs, you'll enhance your productivity, creativity, and efficiency with practical insights and advanced techniques.
Read more
Apr 2025
12h 52m
Generative AI with LangChain
Read more
Gain a solid foundation in LangChain, agentic AI, and LangGraph, and learn to build production-ready systems with multi-agent architectures, advanced RAG pipelines, Tree of Thought reasoning, agent handoffs, and fine-grained error handling.
Read more
May 2025
15h 52m
Architecting Power BI Solutions in Microsoft Fabric
Read more
Power BI provides several options to solve common data problems, and designing the correct solution for each scenario can be a daunting task. This book makes it easier by guiding you through designing optimal solutions using Power BI.
Read more
Apr 2025
14h 16m
Microsoft Identity and Access Administrator SC-300 Exam Guide
Read more
This comprehensive guide covers key topics such as Microsoft Entra ID implementation, authentication and access management, external user management, and hybrid identity solutions, providing practical insights and techniques for SC-300 exam success.
Read more
Mar 2025
19h 48m
LLM Design Patterns
Read more
This book helps you gain practical skills to develop and deploy LLMs. You'll learn data prep, training, pruning, quantization, and evaluation, as well as explore RAG, advanced prompting, and optimization to build robust, scalable language models.
Read more
May 2025
17h 48m
Tableau Cookbook for Experienced Professionals
Read more
Advance your Tableau knowledge beyond the basics, streamline dashboard performance, tackle advanced geospatial challenges, and unlock API potential while fortifying your corporate data infrastructure with proven best practices.
Read more
Apr 2025
12h 24m
Time Series Analysis with Spark
Read more
This book offers a complete guide to time series analysis with Apache Spark and Databricks, covering essential concepts and advanced techniques including Generative AI to equip readers with skills for real-world challenges across industries.
Read more
Mar 2025
9h 56m
Hands-On Artificial Intelligence for IoT
Read more
Transform IoT systems with the power of artificial intelligence using this hands-on guide. Dive into practical techniques and expert insights to innovate and optimize your IoT devices, making them smarter and more efficient.
Read more
May 2025
15h 44m