Redis 8.12.0 is out as a general availability release, and this one lands several changes that matter if you're running Redis for analytics, search, or just want tighter control over memory and TTLs. The headline is compressed bitmaps, but the details go deeper—especially for anyone pushing the limits of Redis data structures.
The release merges the redis-roaring library into the core, giving you native support for compressed bitmaps. Antonio Viggiano, who built redis-roaring, contributed this, and it means lower memory usage and faster bitmap operations without needing an extra module. If you're tracking millions of unique IDs or doing heavy bitwise analytics, this cuts down the RAM bill and should speed up queries.
Compressed bitmaps and the BITRANGEINTARRAY command
Redis now natively supports compressed bitmaps thanks to redis-roaring integration. That means you get roaring bitmap encoding out of the box, improving both memory consumption and performance for large, sparse bitmaps.
There's also a new BITRANGEINTARRAY command, equivalent to redis-roaring's R.RANGEINTARRAY. It returns the offsets of set bits within a specified range—useful for analytics or when you need to extract ranges from large bitmaps efficiently.
Per-member set expiration: new commands for fine-grained TTLs
A major addition is per-member expiration for sets. You can now set expiration on individual set members using new commands:
SEXPIRE,SPEXPIRE,SEXPIREAT, — set expiration on a set member




