Search icon CANCEL
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Redis 4.x Cookbook

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

Table of Contents (21) Chapters

Title Page
Dedication
Packt Upsell
Foreword
Contributors
Preface
1. Getting Started with Redis 2. Data Types 3. Data Features 4. Developing with Redis 5. Replication 6. Persistence 7. Setting Up High Availability and Cluster 8. Deploying to a Production Environment 9. Administrating Redis 10. Troubleshooting Redis 11. Extending Redis with Redis Modules 12. The Redis Ecosystem 13. Windows Environment Setup
1. Other Books You May Enjoy Index

Introduction


We introduced six data types that Redis supports in Chapter 2,Data Types. Besides these essential data types, which are commonly used in development, Redis also provides several useful data features to make your life easier if you understand how to use them correctly.

We will go over the following features in this chapter:

  • Bitmaps: In this recipe, we will show how bitmaps can be used in lieu of strings to save memory space under some circumstances.
  • Expiration: As Redis is an in-memory data store and usually used as the cache, it is imperative to set expiration for transient data. In this recipe, we will show how to set expiration for Redis keys, and what will happen when keys expire.
  • Sorting: Sorting is supported when retrieving values from Redis lists, sets, and sorted sets. We will show the usage of the SORT command in this recipe.
  • Pipeline: In this recipe, you will see how to use the Redis pipelines and why this is a great feature for optimizing the performance of multiple Redis...
lock icon The rest of the chapter is locked
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.
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
Renews at €14.99/month. Cancel anytime}