
Redis Essentials
By :

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 configuration. Chapter 4, Commands (Where the Wild Things Are), provides more details about this configuration.
The maximum number of elements that a Set can hold is 232-1, which means that there can be more than 4 billion elements per Set.
Some use cases for Sets are:
Change the font size
Change margin width
Change background colour