Redis 4.x cookbook over 80 hand-picked recipes for effective Redis development and administration

Redis is a popular key-value store database used commonly across many enterprises. Based on the latest version of Redis 4.x, this book provides useful recipes to help you overcome any obstacle when it comes to the different tasks associated with Redis - from working with data types to administering...

Full description

Bibliographic Details
Main Authors: Huang, Pengcheng, Wang, Zuofei (Author)
Format: eBook
Language:English
Published: Birmingham, UK Packt Publishing 2018
Subjects:
Online Access:
Collection: O'Reilly - Collection details see MPG.ReNa
Table of Contents:
  • Writing a MapReduce job for Redis
  • Getting ready...
  • How to do it...
  • How it works...
  • See also
  • Writing a Spark job for Redis
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Chapter 5: Replication
  • Introduction
  • Setting up Redis replication
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Optimizing replication
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Troubleshooting replication
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Chapter 6: Persistence
  • Introduction
  • Manipulating RDB
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Exploring RDB
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Manipulating AOF
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Exploring AOF
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Combining RDB and AOF
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • Chapter 7: Setting Up High Availability and Cluster
  • Introduction
  • Setting up Sentinel
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Testing Sentinel
  • Getting ready...
  • How to do it...
  • How it works...
  • Triggering a master failover manually
  • Simulating a master down
  • Simulating two slaves down
  • Simulating one Sentinel down
  • Simulating two Sentinels down
  • There's more...
  • Administrating Sentinel
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • Setting up Redis Cluster
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Testing Redis Cluster
  • Getting ready...
  • Introduction
  • Using bitmaps
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Setting expiration on keys
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Using SORT
  • Getting ready...
  • How to do it...
  • There's more...
  • See also
  • Using pipelines
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Understanding Redis transactions
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Using PubSub
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Using Lua
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Debugging Lua
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Chapter 4: Developing with Redis
  • Introduction
  • When to use Redis in your application
  • Session store
  • Analytics
  • Leaderboards
  • Queues
  • Latest N records
  • Caching
  • There's more...
  • See also
  • Using the correct data types
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Using the correct Redis APIs
  • Getting ready...
  • How to do it
  • How it works...
  • There's more...
  • See also
  • Connecting to Redis with Java
  • Getting ready...
  • How to do it...
  • Connecting to the Redis Server
  • Using pipeline in Jedis
  • Using transactions in Jedis
  • Running Lua scripts in Jedis
  • Using a connection pool in Jedis
  • How it works...
  • See also
  • Connecting to Redis with Python
  • Getting ready...
  • How to do it...
  • Connecting to the Redis Server
  • Using pipelines
  • Running Lua scripts
  • How it works...
  • There's more...
  • See also
  • Connecting to Redis with Spring Data Redis
  • Getting ready...
  • How to do it...
  • How it works...
  • See also
  • Troubleshooting latency issues
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Troubleshooting memory issues
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Troubleshooting crash issues
  • Getting ready...
  • How to do it...
  • How it works...
  • See also
  • Chapter 11: Extending Redis with Redis Modules
  • Introduction
  • Loading a Redis module
  • Getting ready...
  • How to do it...
  • How it works...
  • See also
  • Writing a Redis module
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Chapter 12: The Redis Ecosystem
  • Introduction
  • The Redisson client
  • See also
  • Twemproxy
  • See also
  • Codis - a proxy-based high-performance Redis Cluster solution
  • See also
  • The CacheCloud Redis management system
  • See also
  • Pika
  • a Redis-compatible NoSQL database
  • See also
  • Appendix: Windows Environment Setup
  • Other Books You May Enjoy
  • Leave a review
  • let other readers know what you think
  • Index
  • Cover
  • Copyright and Credits
  • Dedication
  • Packt Upsell
  • Foreword
  • Contributors
  • Table of Contents
  • Preface
  • Chapter 1: Getting Started with Redis
  • Introduction
  • Downloading and installing Redis
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Starting and shutting down Redis
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Connecting to Redis with redis-cli
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Getting server information
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Understanding the Redis Event Model
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Understanding the Redis protocol
  • Getting ready...
  • How to do it...
  • How it works...
  • See also
  • Chapter 2: Data Types
  • Introduction
  • Using the string data type
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Using the list data type
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Using the hash data type
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Using the set data type
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • Using the sorted set data type
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Using the HyperLogLog data type
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Using the Geo data type
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Managing keys
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Chapter 3: Data Features
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Administrating Redis Cluster
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Chapter 8: Deploying to a Production Environment
  • Introduction
  • Deploying Redis on Linux
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Securing Redis
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Setting client connection options
  • Getting ready...
  • How to do it...
  • How it works...
  • See also
  • Configuring memory policy
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Benchmarking
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Logging
  • Getting ready...
  • How to do it...
  • How it works...
  • Chapter 9: Administrating Redis
  • Introduction
  • Managing Redis Server configurations
  • Getting ready...
  • How to do it...
  • How it works...
  • Operating Redis using bin/redis-cli
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Backup and restore
  • Getting ready...
  • How to do it...
  • Backing up Redis data
  • Restoring Redis data from an RDB file
  • How it works...
  • Monitoring memory
  • Getting ready...
  • How to do it...
  • How it works...
  • There is more...
  • See also
  • Managing clients
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Data migration
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Chapter 10: Troubleshooting Redis
  • Introduction
  • Health checking in Redis
  • Getting ready...
  • How to do it...
  • How it works...
  • See also
  • Identifying slow queries using the SLOWLOG
  • Getting ready...
  • How to do it...
  • How it works...
  • There's more...
  • See also