What is New in Redis 8.2
Redis 8.2 focuses on security fixes, better stream handling, and performance boosts. It adds new commands for streams and bitmaps, improves cluster monitoring, and enhances vector search. Memory usage and replication metrics are also refined, making Redis more efficient and reliable for large-scale deployments.
Security Fixes
- Resolved CVE-2025-27151: Fixed potential stack overflow and remote code execution in
redis-check-aof. - Resolved CVE-2025-32023: Patched out-of-bounds write in HyperLogLog commands.
- Resolved CVE-2025-48367: Better connection handling to keep accepting new connections during errors.
Stream Enhancements
New commands make working with streams safer and more efficient:
XDELEX: Deletes stream entries with options for consumer group references.XACKDEL: Acknowledges and deletes entries atomically.
Options like KEEPREF, DELREF, and ACKED give precise control. These are also added to XADD and XTRIM for consistent behavior.
Cluster and Monitoring
New command for better insights:
CLUSTER SLOT-STATS: Shows per-slot details like key count, CPU usage, and network traffic.
Vector Search Updates
VSIMnow supports theINoperator for complex filtering in similarity searches.- New parameter
SHARD_K_RATIO(unstable) for trading accuracy for speed in clustered KNN queries. - Additional compression options for SVS-VAMANA indexes to save memory.
Bitmap Operations
The BITOP command gains new operators:
DIFF: Bitwise difference.DIFF1: Optimized for single-bit differences.ANDOR: Combined AND and OR in one operation.ONE: For single-bit scenarios.
Keyspace Notifications
New events help track changes more accurately:
OVERWRITTEN: When a key's value is fully replaced.TYPE_CHANGED: When a key switches data type.
Performance Improvements
- Faster
BITCOUNTwith prefetching. - Optimized
SCANskips expiry checks on databases without volatile keys. - Better list and sorted set commands like
LREM,LPOS,ZRankusing caching. - Quicker key operations (
COPY,RENAME,RESTORE) with TTL. - Reduced client management overhead.
- Faster vector set loading in RDB and RESTORE.
Memory and Metrics Enhancements
- Lower memory use for JSON numbers and overall tracking.
- New metrics:
used_memory_peak_time, replication sync attempts, link uptime, and disconnect duration.
General Updates
Over 15 improvements in performance and resource use. All features are now in a single Redis Open Source package, simplifying distribution.
Why Upgrade to Redis 8.2
Redis 8.2 strengthens security, adds practical commands for streams and bitmaps, and optimizes speed and memory. It provides better monitoring in clusters and refined vector capabilities, helping build faster and more reliable data systems.