Search icon
Close icon
Search icon
CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Buy 2 products and save 10%
Buy 3 products and save 15%
Buy 5 products and save 20%
Savings automatically calculated. No voucher code required
Profile icon
Account
Close icon
Sign in
New User?
Create Account
Your Subscription
Your Owned Titles
Your Account
Your Orders
Change country
Modal Close icon
Country selected
Country selected
United States
Country selected
United Kingdom
Country selected
India
Country selected
Germany
Country selected
France
Country selected
Canada
Country selected
Russia
Country selected
Spain
Country selected
Brazil
Country selected
Australia
Country selected
Argentina
Country selected
Austria
Country selected
Belgium
Country selected
Bulgaria
Country selected
Chile
Country selected
Colombia
Country selected
Cyprus
Country selected
Czechia
Country selected
Denmark
Country selected
Ecuador
Country selected
Egypt
Country selected
Estonia
Country selected
Finland
Country selected
Greece
Country selected
Hungary
Country selected
Indonesia
Country selected
Ireland
Country selected
Italy
Country selected
Japan
Country selected
Latvia
Country selected
Lithuania
Country selected
Luxembourg
Country selected
Malaysia
Country selected
Malta
Country selected
Mexico
Country selected
Netherlands
Country selected
New Zealand
Country selected
Norway
Country selected
Philippines
Country selected
Poland
Country selected
Portugal
Country selected
Romania
Country selected
Singapore
Country selected
Slovakia
Country selected
Slovenia
Country selected
South Africa
Country selected
South Korea
Country selected
Sweden
Country selected
Switzerland
Country selected
Taiwan
Country selected
Thailand
Country selected
Turkey
Country selected
Ukraine
Country selected
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO
TOP
You're reading from
Redis 4.x Cookbook
Product type
Book
Published in
Feb 2018
Publisher
Packt
ISBN-13
9781783988167
Pages
382 pages
Edition
1st Edition
Languages
Concepts
Database Administration
Toc
Table of Contents
(21) Chapters
close
Title Page
Dedication
Packt Upsell
Foreword
Contributors
Preface
1. Getting Started with Redis
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
£13.99/month
. Cancel anytime}
Other recommended products
Related to this chapter
Left arrow icon
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
10 hours 16 minutes
Right arrow icon
Personalised recommendations for you
Based on your interests and search pattern
Left arrow icon
Et al.
Read more
Ever wonder why speech recognition systems don't understand the Scottish accent, or what would happen if an astronaut only ate mac 'n' cheese, or other spurious reflections you'd have at a bar? We did, then collated those deliberations into absurd research articles with fake figures and methodologies inspired by even more fictionally absurd studies.
Read more
Aug 2023
7 hours 40 minutes
Generative AI with LangChain
Read more
This book is a comprehensive introduction to LLMs and LangChain, demystifying the basic mechanics of LangChain, its functionalities, and the myriad of applications it can be integrated into.
Read more
Dec 2023
12 hours 0 minutes
Generative AI with LangChain
Read more
This book is a comprehensive introduction to LLMs and LangChain, demystifying the basic mechanics of LangChain, its functionalities, and the myriad of applications it can be integrated into.
Read more
Dec 2023
12 hours 0 minutes
Generative AI with LangChain
Read more
This book is a comprehensive introduction to LLMs and LangChain, demystifying the basic mechanics of LangChain, its functionalities, and the myriad of applications it can be integrated into.
Read more
Dec 2023
12 hours 0 minutes
Generative AI with LangChain
Read more
This book is a comprehensive introduction to LLMs and LangChain, demystifying the basic mechanics of LangChain, its functionalities, and the myriad of applications it can be integrated into.
Read more
Dec 2023
12 hours 0 minutes
Mastering Tableau 2023
Read more
This book is a comprehensive resource to mastering your Tableau skills and becoming a BI expert. As you progress, you will learn how to build advanced dashboards and improve your storytelling to derive key business insight, as well as make you well-versed with advanced functionalities of Tableau in the business intelligence domain.
Read more
Aug 2023
22 hours 48 minutes
Building AI Applications with ChatGPT APIs
Read more
This guide covers all ChatGPT API features for effortless creation of robust AI powered apps. With its help, you’ll be able to leverage ChatGPT’s cutting-edge NLP models to take your app development skills to the next level. You’ll also work on ten exciting projects that will give you the practical know-how that you can apply to your existing applications.
Read more
Sep 2023
8 hours 36 minutes
Building AI Applications with ChatGPT APIs
Read more
This guide covers all ChatGPT API features for effortless creation of robust AI powered apps. With its help, you’ll be able to leverage ChatGPT’s cutting-edge NLP models to take your app development skills to the next level. You’ll also work on ten exciting projects that will give you the practical know-how that you can apply to your existing applications.
Read more
Sep 2023
8 hours 36 minutes
Data Engineering with AWS
Read more
Embark on a journey to master data engineering pipelines on AWS! Our book offers a hands-on experience of AWS services for ingesting, transforming, and consuming data. Whether you're an absolute beginner or someone with basic data engineering experience, this guide is an indispensable resource.
Read more
Oct 2023
21 hours 12 minutes
Modern Data Architecture on AWS
Read more
Every organization wants an agile, performant, and cost-effective data platform that meets all their current and future business needs. Purpose-built AWS analytics services and their features play a big part in building such a modern data platform. This book brings to you all the design and architectural patterns that’ll help you achieve this goal.
Read more
Aug 2023
14 hours 0 minutes
Practical Guide to Applied Conformal Prediction in Python
Read more
Discover the power of Conformal Prediction with the "Practical Guide to Applied Conformal Prediction in Python." Master the latest techniques to quantify uncertainty in machine learning and computer vision models, and seamlessly apply them to your industry applications.
Read more
Dec 2023
8 hours 0 minutes
TinyML Cookbook
Read more
With over 70 project-based recipes, the TinyML Cookbook is a practical guide that will help you to get the most out of your microcontrollers. It provides a comprehensive understanding of the theoretical foundations while giving you hands-on experience training ML models for deployment on Arduino Nano 33 BLE Sense, Raspberry Pi Pico, and SparkFun RedBoard Artemis Nano microcontrollers.
Read more
Nov 2023
22 hours 8 minutes
Right arrow icon