concept intset in category redis

appears as: n intset, intsets
Redis in Action

This is an excerpt from Manning's book Redis in Action.

Like the ziplist for LISTs, HASHes, and ZSETs, there’s also a compact representation for short SETs. If our SET members can all be interpreted as base-10 integers within the range of our platform’s signed long integer, and our SET is short enough (we’ll get to that in a moment), Redis will store our SET as a sorted array of integers, or intset.

Listing 9.4. When an intset grows to be too large, it’s represented as a hash table.