Redis 8.12 Release: Set Member Expiry and Compressed Bitmaps
Sagar Tayde · · 3 min read
Redis 8.12 reached general availability in Redis Open Source on 22 November 2026. The headline features fix two long-standing annoyances - you can now expire a single member of a set, and bitmaps can be stored compressed - along with lower memory for large sorted sets. This post is for developers in India using Redis for sessions, caches, queues and leaderboards: what changed, what it replaces in your code, and how to approach the upgrade.
The headline changes
From the Redis 8.12.0 release notes:
- Set member expiration. New commands
SEXPIRE,SPEXPIRE,SEXPIREATandSPEXPIREATset a TTL on one member of a set;STTL,SPTTL,SEXPIRETIMEandSPEXPIRETIMEread it back, andSPERSISTremoves it (the GitHub release notes print it asSETPERSIST; the command reference names itSPERSIST). - Compressed bitmaps. The redis-roaring module is now part of core, for lower memory and faster bitmap operations, with a new
BITRANGEINTARRAYcommand to list set bits in a range. - Smaller large sorted sets. A new B+ tree encoding substantially reduces memory for big sorted sets.
- Atomic sorted-set moves.
ZMOVE,BZMOVEandZMOVEMEMBERmove members between sorted sets in one step, by end, score range or name, with batching. BLESSprotects named keys from eviction.
There are also query engine and vector index improvements, including opt-in SQ8 compression for HNSW vector indexes.
What set member expiry replaces
Until now, a set member could not have its own TTL. To expire individual items - “user is online for 60 seconds”, “this token is valid for 10 minutes” - you either kept one key per item, or stored a timestamp in a sorted set and ran a cleanup job to remove old members. Hash fields got their own expiry in Redis 7.4; 8.12 brings the same idea to sets.
With 8.12 you can give one member its own TTL with SEXPIRE, or add a member with a TTL in one step with SADDEX; check the command reference for the exact arguments before you write code against it. The point is that the cleanup job goes away. Our Redis TTL and EXPIRE guide covers the key-level basics this builds on.

Fixes worth knowing about
The 8.12 line also fixes bugs that can matter in production: replicas misbehaving when replication compression was on, wrong BITCOUNT results on ARM (AArch64) for large dense bitmaps, and cluster bus addresses accepted without validation. The release candidates before it fixed lost keys during atomic slot migration and a TLS session-resumption check. If you run your own Redis on ARM machines or in cluster mode, those alone are a reason to plan the upgrade.
Should you upgrade now
For a self-managed instance, the usual order applies: test on a replica or staging copy first, check that your client library knows the new commands before you use them, and upgrade replicas before the primary. Nothing in 8.12 forces you to change existing code; the new commands are opt-in.
If you use a Redis-compatible service rather than Redis itself, check which engine and version it runs before using 8.12-only commands. Valkey, the open-source fork, has its own release line and its own command set - our Valkey 9.2 release post and Valkey vs Redis comparison explain how the two differ.
Smaller memory, smaller plan
The memory savings are the practical win. In-memory stores are priced by RAM, so a leaderboard or a large bitmap that shrinks lets you stay on a smaller plan for longer - and on a dollar-billed provider, that is a dollar saving before your card’s markup. If you run a cleanup cron next to Redis for expiring set members, the new commands can retire it - one less thing to watch at 3 a.m. IST.
Managed key-value in Mumbai
Voroa Key Value is a managed, Redis-compatible store in Mumbai with nightly snapshots and plans from 256 MB to 10 GB; the Key Value guide covers connecting with REDIS_URL and how plans work. For queues on top of it, see the background jobs queue guide. Before relying on an 8.12-only command on any managed service, check the engine version it reports.