{
  "schema_version": 2,
  "id": "develop/whats-new/8-2",
  "title": "Redis 8.2",
  "url": "https://redis.io/docs/latest/develop/whats-new/8-2/",
  "summary": "What's new in Redis 8.2",
  "tags": [
    "docs",
    "operate",
    "rs",
    "rc"
  ],
  "last_updated": "2026-09-11T15:36:02+01:00",
  "page_type": "content",
  "content_hash": "503af3f60ea90c5a131790b62180ae9351e58a41efa7a81027ac9f4748afd667",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Redis 8.2 builds on the foundation of Redis 8.0 with significant performance and memory optimizations, enhanced streaming capabilities, and improved cluster management tools.\n\nThis release delivers major improvements across multiple areas:\n- Enhanced Redis Streams with new commands for better consumer group management\n- New bitmap operations for advanced bit manipulation\n- Advanced cluster monitoring with per-slot usage metrics\n- Optimized vector search with new compression algorithms\n- Enhanced keyspace notifications with new event types\n- More than 15 performance and resource utilization improvements\n\nBelow is a detailed breakdown of these updates."
    },
    {
      "id": "security-improvements",
      "title": "Security improvements",
      "role": "security",
      "text": "Redis 8.2 includes important security fixes:\n- **CVE-2025-27151**: Fixed potential stack overflow and RCE vulnerability in redis-check-aof.\n- **CVE-2025-32023**: Fixed out-of-bounds write vulnerability in HyperLogLog commands.\n- **CVE-2025-48367**: Improved connection handling to retry accepting connections even when errors occur."
    },
    {
      "id": "new-features",
      "title": "New features",
      "role": "content",
      "text": ""
    },
    {
      "id": "enhanced-redis-streams",
      "title": "Enhanced Redis Streams",
      "role": "content",
      "text": "Redis 8.2 introduces powerful new commands that simplify consumer group management and stream lifecycle operations:\n\n- [`XDELEX`](https://redis.io/docs/latest/commands/xdelex): Delete entries from streams with advanced consumer group handling options.\n- [`XACKDEL`](https://redis.io/docs/latest/commands/xackdel): Acknowledge and delete stream entries in a single atomic operation.\n\nThese commands include `KEEPREF`, `DELREF`, and `ACKED` options that give you precise control over how consumer group references are handled during entry deletion. This simplifies common patterns where you need to clean up acknowledged entries while working with multiple consumer groups.\n\nThe [`XADD`](https://redis.io/docs/latest/commands/xadd) and [`XTRIM`](https://redis.io/docs/latest/commands/xtrim) commands have also been extended with these same options, providing consistent behavior across all commands that remove stream entries."
    },
    {
      "id": "cluster-monitoring-improvements",
      "title": "Cluster monitoring improvements",
      "role": "content",
      "text": "The new [`CLUSTER SLOT-STATS`](https://redis.io/docs/latest/commands/cluster-slot-stats) command provides detailed per-slot usage metrics including:\n- Key count per slot\n- CPU time consumption\n- Network ingress and egress\n\nThis enhanced visibility helps you optimize cluster performance and identify hotspots in your data distribution."
    },
    {
      "id": "vector-search-enhancements",
      "title": "Vector search enhancements",
      "role": "content",
      "text": "The `VSIM` command now supports the `IN` operator for filtering expressions, giving you more flexibility when performing vector similarity searches with complex filtering criteria."
    },
    {
      "id": "enhanced-bitmap-operations",
      "title": "Enhanced bitmap operations",
      "role": "content",
      "text": "Redis 8.2 extends the [`BITOP`](https://redis.io/docs/latest/commands/bitop) command with new operators that provide more sophisticated bit manipulation capabilities:\n\n- **DIFF**: Perform bitwise difference operations between bitmaps.\n- **DIFF1**: Calculate the difference with optimized single-bit operations.\n- **ANDOR**: Combine AND and OR operations in a single command.\n- **ONE**: Specialized operation for single-bit scenarios.\n\nThese new operators enable more complex bitmap workflows and can simplify operations that previously required multiple commands."
    },
    {
      "id": "improved-keyspace-notifications",
      "title": "Improved keyspace notifications",
      "role": "content",
      "text": "Redis 8.2 introduces new keyspace notification event types that provide better visibility into data changes:\n\n- **OVERWRITTEN**: Triggered when a key's value is completely overwritten.\n- **TYPE_CHANGED**: Fired when a key's data type changes.\n\nThese events help you build more responsive applications by providing granular notifications about specific types of data modifications."
    },
    {
      "id": "improvements",
      "title": "Improvements",
      "role": "content",
      "text": "Redis 8.2 delivers substantial performance improvements across core operations."
    },
    {
      "id": "performance-optimizations",
      "title": "Performance optimizations",
      "role": "performance",
      "text": "- **BITCOUNT**: Enhanced with prefetching optimizations for faster bit counting operations.\n- **SCAN**: Optimized to perform expiration checks only on databases with volatile keys, reducing unnecessary overhead.\n- **List operations**: `LREM`, `LPOS`, and `LINSERT` benefit from cached `string2ll` results in `quicklistCompare`.\n- **Sorted set operations**: `ZRANK` and related commands use the same caching optimizations.\n- **Key operations**: `COPY`, `RENAME`, and `RESTORE` are optimized when TTL is used.\n- **Client management**: Reduced overhead in client cron operations to avoid blocking the main thread.\n- **Vector operations**: Improved RDB loading and RESTORE speed for vector sets by storing worst link information."
    },
    {
      "id": "memory-efficiency-improvements",
      "title": "Memory efficiency improvements",
      "role": "content",
      "text": "- **JSON data types**: Memory footprint improvements through number inlining.\n- **Memory tracking**: Reduced overhead associated with tracking malloc's usable memory.\n- **Expiry handling**: Optimized expiry checks in scan callbacks.\n- **Vector compression**: Additional compression variants for the SVS-VAMANA vector index reduce memory usage."
    },
    {
      "id": "vector-search-performance",
      "title": "Vector search performance",
      "role": "content",
      "text": "Redis 8.2 introduces the `SHARD_K_RATIO` parameter for KNN vector queries in Redis clusters. This unstable feature allows you to favor network latency over accuracy, providing faster responses when exact precision isn't critical."
    },
    {
      "id": "enhanced-metrics",
      "title": "Enhanced metrics",
      "role": "content",
      "text": "Redis 8.2 provides new metrics to help you monitor and troubleshoot your Redis instances.\n\n#### Memory metrics\n\n- `used_memory_peak_time`: Timestamp when `used_memory_peak` was reached\n\n#### Replication metrics\n\n- `master_current_sync_attempts`: Number of sync attempts since last disconnection\n- `master_total_sync_attempts`: Total number of sync attempts to master\n- `master_link_up_since_seconds`: Duration since the replication link was established\n- `total_disconnect_time_sec`: Cumulative time the replica has been disconnected\n\nThese metrics provide better visibility into replication health and help you identify patterns in connection stability."
    },
    {
      "id": "component-versions",
      "title": "Component versions",
      "role": "content",
      "text": "Redis 8.2 continues the unified distribution approach introduced in Redis 8.0, delivering all functionality in a single Redis Open Source package without separate modules."
    }
  ],
  "examples": []
}
