Book Image

Learning Redis

By : Vinoo Das
Book Image

Learning Redis

By: Vinoo Das

Overview of this book

Table of Contents (16 chapters)
Learning Redis
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Data types in Redis


Redis, a data structure server has many in-built data types, which makes it a bit different from other key-value NoSQL datastores in the ecosystem. Unlike other NoSQL, Redis provides the users with many in-built data types which provide a sematic way of arranging their data. Think of it like this; while designing a solution we need domain objects which in a way shape up our data layer. After deciding on the domain objects, we need to design the structure for our data that will be saved in the data store for which we need some predefined data structures. The advantage of this is that it saves time and efforts of the programmers to externally create and manage this data. For example, suppose in our program there is a requirement for a Set like data structure. Using Java, we can easily use an in-built data structure such as Set. If we were to put this data as a key-value, we will have to put the entire set against a key. Now if we were to sort this Set, the normal way would...