What is New in Redis 7.2
Redis 7.2 adds advanced geospatial search, simplifies JSON handling, and boosts performance in sorted sets and streams. It improves script execution, client tracking, and security checks. This release also includes several breaking changes for better consistency and reliability.
New Features
Geospatial Polygon Search
The Query Engine now supports polygon searches for geospatial data. This lets you query and filter points inside complex geographic shapes.
JSON Manipulation Commands
Two new commands make working with JSON easier:
JSON.MERGE: Merges a JSON value into existing paths.JSON.MSET: Sets multiple JSON values at once using key-path-value pairs.
Performance Improvements
- Sorted sets are 30% to 100% faster, especially useful for leaderboards in gaming.
- Better tracking of stream consumers for improved monitoring.
- Optimized
SORT BYin the Query Engine. - Faster client-side tracking of keys during script execution.
Other Enhancements
- Blocked stream commands return a specific error if the key is gone.
- New
FORMATresponse in RESP3 for clearer output. - Blocked commands re-check ACL permissions before running.
- TLS replication supports Server Name Indication (SNI).
HELLOcommand only changes client state on success.- Standardized ACL error messages and codes.
- Expired keys are removed from replica indexes in the Query Engine.
Breaking Changes
Several updates may require code adjustments:
- Lua scripts no longer allow blocking certain commands in read-only mode.
- Changes to error responses, including case differences.
ZPOPMINandZPOPMAXbehavior with count 0.- Updates to
XCLAIMandXAUTOCLAIM. - ACL command categories and key permissions refined.
- Per-subcommand statistics in introspection.
- Some
CONFIGcommands allowed during loading.
Redis Stack Note
Redis Stack 7.2 no longer includes Graph features, as RedisGraph has reached end-of-life.
Why Upgrade to Redis 7.2
Redis 7.2 enhances geospatial and JSON capabilities while delivering significant speed gains in key areas. It improves monitoring, security, and consistency, making it a solid choice for applications using streams, sorted sets, or advanced queries.