Redis Essentials

More Information
  • Build analytics applications using Bitmaps and Hyperloglogs
  • Enhance scalability with Twemproxy, Redis Sentinel, and Redis Cluster
  • Build a Time Series implementation in Node.js and Redis
  • Create your own Redis commands by extending Redis with Lua
  • Get to know security techniques to protect your data (SSL encryption, firewall rules, basic authorization)
  • Persist data to disk and learn the trade-offs of AOF and RDB
  • Understand how to use Node.js, PHP, Python, and Ruby clients for Redis
  • Avoid common pitfalls when designing your next solution

Redis is the most popular in-memory key-value data store. It’s very lightweight and its data types give it an edge over the other competitors. If you need an in-memory database or a high-performance cache system that is simple to use and highly scalable, Redis is what you need.

Redis Essentials is a fast-paced guide that teaches the fundamentals on data types, explains how to manage data through commands, and shares experiences from big players in the industry.

We start off by explaining the basics of Redis followed by the various data types such as Strings, hashes, lists, and more. Next, Common pitfalls for various scenarios are described, followed by solutions to ensure you do not fall into common traps.

After this, major differences between client implementations in PHP, Python, and Ruby are presented. Next, you will learn how to extend Redis with Lua, get to know security techniques such as basic authorization, firewall rules, and SSL encryption, and discover how to use Twemproxy, Redis Sentinel, and Redis Cluster to scale infrastructures horizontally. At the end of this book, you will be able to utilize all the essential features of Redis to optimize your project's performance.

  • Learn how to use Redis's data types efficiently to manage large data sets
  • Scale Redis to multiple servers with Twemproxy, Redis Sentinel, and Redis Cluster
  • A fast-paced guide, full of real-world examples to help you get the best out of the features offered by Redis
Page Count 230
Course Length 6 hours 54 minutes
ISBN 9781784392451
Date Of Publication 7 Sep 2015


Maxwell Dayvson Da Silva

Maxwell Dayvson Da Silva, a self-taught programmer, is the director of technology at The New York Times.

Born in Recife, Brazil, he is a video specialist and is most interested in bringing technology to a global audience. His work has ranged from developing and delivering highly scalable products to innovating and implementing large-scale video solutions. Prior to joining the Times, he worked for Globo, Brazil's leading media network, and Terra, a global digital media company.

Additionally, he has spoken at conferences such as Campus Party, FISL, SET Broadcast and Cable, Streaming Media East, and Streaming Media West. Maxwell has also devoted time to speaking at several Brazilian universities, including UFGRS, IFRS, UDESC, and FEEVALE-RS.

He is a contributor to and creator of some open source projects. You can find them at Outside of his professional work, Maxwell regularly combines his passion for art and science to create games and interactive art installations. His son, Arthur, inspires him to seek opportunities to bring science into the lives of young people, both in New York and abroad.

Although Redis Essentials is Maxwell's first book, he has done technical reviewing for two others, Extending Bootstrap and Learning JavaScript Data Structures and Algorithms. You can contact him on LinkedIn at

Hugo Lopes Tavares

Hugo Lopes Tavares is a software developer from Brazil who currently works as a platform engineer at Yipit, a technology company focused on data aggregation and analysis. Prior to his work in the United States, Hugo worked on live streaming video development for, the Internet branch of Grupo Globo, which is the largest media conglomerate in Latin America.

Having been involved in open source software, he has made a significant impact in this field. He was a main contributor to pip (the Python package installer), wrote improvements to CPython and the Python standard library, coauthored Splinter (a web-testing tool), and contributed to many well-known projects. Some of his contributions can be found at

Additionally, Hugo worked at NSI (Information Systems Research Group), carrying out research and development on agile methods and software quality for the Brazilian government. Within his research, he created some testing tools, the most famous of which are Should-DSL and PyCukes, which are mentioned in Python Testing Cookbook, Packt Publishing (Should-DSL has its own section in it).

When Hugo is not doing anything related to technology, he is involved in strength training as an amateur powerlifter.

You can contact him on LinkedIn at