September 2015
Beginner to intermediate
230 pages
4h 47m
English
This chapter introduces the Set, Sorted Set, Bitmap, and HyperLogLog data types. It is a continuation from the previous chapter, and it also introduces new commands through redis-cli and Node.js, along with some details of the internals of each data type.
A Set in Redis is an unordered collection of distinct Strings—it's not possible to add repeated elements to a Set. Internally, a Set is implemented as a hash table, which is the reason that some operations are optimized: member addition, removal, and lookup run in O(1), constant time.
The Set memory footprint will be reduced if all the members are integers, and the total number of elements can be as high as the value of the set-max-intset-entries ...
Read now
Unlock full access