Practical technical guides / Recent development: Valkey 9.2.0 (2026-11-18)

Valkey 9.2 Rejects Bare Score Bounds and Saves More Often: Test Both Before Upgrading

Valkey 9.2.0 (18 November 2026) rejects bare score bounds and counts active expiry toward save points. Checks to run before upgrading, plus DELEX parity.

By Sandeep Belgavi · Published 2026-11-26 · Prepared 2026-11-25

Valkey 9.2.0 (18 November 2026) rejects bare score bounds and counts active expiry toward save points. Checks to run before upgrading, plus DELEX parity.

What changed, and why an upgrade note is not enough

Valkey 9.2.0 was released as the first stable 9.2 version on 18 November 2026, according to its release notes, which mark the upgrade urgency as low. Most of the release adds features: forkless snapshots and full synchronization, ACL roles, a Path Hash data type, hot key detection, replication throttling and new commands. Three entries are listed under Behavior Changes, and those are the ones that can turn an uneventful binary swap into an incident, because they change the meaning of commands an application already sends.

This guide reads the pull requests behind two of those behaviour changes, turns each into a check you can run before upgrading, and covers the new DELEX command together with its compatibility limits. The companion example models both checks in plain Python and pins them with tests. It is a model of the merged changes, not a run against Valkey binaries; run the same commands against a staging 9.2 server before production.

Score bounds that used to mean zero

Before 9.2, a sorted-set range command accepted a bare opening parenthesis as a score bound and treated it as an exclusive zero, and accepted an empty string as zero. Pull request 4054 explains the mechanism: the parser for exclusive bounds consumed the parenthesis, parsed a zero-length number that evaluated to 0.0, and the end-of-input check passed because the pointer was already at the terminator. In 9.2 both inputs return the ordinary "not a float" error. The affected commands are ZRANGEBYSCORE, ZREVRANGEBYSCORE, ZCOUNT and ZRANGESTORE.

No reasonable client writes a bare parenthesis on purpose. Clients produce one by formatting: a template such as "(" + str(low) where low is unexpectedly empty, or a query builder that omits a missing lower bound but keeps the exclusive marker. Before 9.2 such a query silently returned results from zero upwards. After 9.2 it fails.

The companion model makes the difference concrete. With scores 0, 0.5, 1 and 2, ZCOUNT with bounds "(" and "+inf" counts 3 under the old parser, because it behaves as "(0", and raises an error under the new one.

# Author: Sandeep Belgavi. Model of zset score-bound parsing before and after Valkey 9.2.
def parse_bound(text, version="9.2"):
    exclusive = text.startswith("(")
    body = text[1:] if exclusive else text
    if body == "":
        if version == "9.2":
            raise ValueError("min or max is not a float")
        return 0.0, exclusive          # pre-9.2: zero-length number parsed as 0
    if body in ("+inf", "inf"):
        return float("inf"), exclusive
    if body == "-inf":
        return float("-inf"), exclusive
    return float(body), exclusive      # raises ValueError for other bad input

To check before upgrading, find every place your code builds score bounds and feed the generated strings through an audit like the companion's audit_bounds, which reports only bounds that were accepted before and are rejected now. In the example list of six bounds, only the bare parenthesis and the empty string are flagged. If you cannot audit the code, capture traffic in staging with MONITOR for a short period, or log bounds in your client wrapper, and search for arguments that are exactly "(" or empty.

The safe outcome of this change is an error. If the application handles that error as "no results" or retries forever, the upgrade converts a silently wrong query into a visibly broken one, which is an improvement, but it should be found in staging rather than production.

Save points that fire on expiry alone

The second behaviour change concerns RDB save points. A configuration such as save 3600 1 300 100 60 10000 triggers a background save when at least that many changes have accumulated since the last save and the time window has passed. The number of changes is the server's dirty counter.

Pull request 3118 changes what increments that counter. In 9.2, when active expiry on the primary deletes keys or hash fields, the dirty counter now increases. Previously, active expiry deletions on the primary did not count, while the replica, which receives those expiries as propagated DEL commands, already counted them. The pull request describes the change as removing that difference and treating expirations as writes on both sides, and it warns that save frequency may increase for some workloads.

The workload most affected is a primary that receives few writes but holds many keys with time-to-live: a session or cache tier for a read-heavy site, for example. The companion model takes that save line and a synthetic primary with no writes and 50 expiries per second. Under the old rule no save point is ever reached. Under the new rule the 60 seconds and 10,000 changes rule is reached after 200 seconds, so the server starts a background save roughly every few minutes. A write-heavy workload with 500 writes per second reaches the 60-second rule at 60 seconds either way, so it is unaffected.

Each background save on a forking configuration costs a fork and copy-on-write memory, and every save writes the dataset to disk. Before upgrading, look at the primary's expired_keys counter in INFO stats over a busy hour, divide by the seconds to get an expiry rate, and compare it with your save rules. If expiries alone would satisfy a rule, either accept the extra saves, adjust the rules, or move persistence to replicas, which is a common arrangement and the case where the pull request expects no visible change.

Path Hash deletions now remove the key

The third behaviour change applies to the new Path Hash type. Pull request 5068 makes deleting the last path remove the key itself and emit a generic del event, following the lifecycle of ordinary hashes. Before the change an empty key remained. The pull request notes that older release candidate replicas keep the previous behaviour, so mixed-version replication needs consideration. This matters only if you ran Path Hash on a 9.2 release candidate; otherwise it is the behaviour you will see from the start.

DELEX and what it does not make portable

Valkey 9.2 also adds DELEX key IFEQ value and DELEX key IFNE value, which delete a string key only when its value equals, or differs from, the given value. The pull request that added it, 4607, states that DELEX IFEQ is equivalent to the existing DELIFEQ command, available since Valkey 9.0, and that the name and syntax were chosen for compatibility with Redis.

Compatibility is partial, and the details matter if one codebase targets both servers. Redis documents DELEX as available since Redis Open Source 8.4.0 with four options, IFEQ, IFNE and the digest-based IFDEQ and IFDNE, and states that without an option the key is removed regardless of type. The Valkey 9.2 documentation lists only IFEQ and IFNE in its usage line. Code that uses the digest options, or calls DELEX without a condition, should not be assumed portable.

For releasing a lock you own, DELEX IFEQ or DELIFEQ replaces the usual Lua compare-and-delete script. It does not change the correctness argument for locks: a paused client can still lose its lease and release nothing, or have its protected operation overlap another holder's. Fencing tokens checked by the resource remain necessary when correctness depends on mutual exclusion.

An upgrade checklist

Audit score-bound construction or captured traffic for bare parentheses and empty bounds. Compute each primary's expiry rate and compare it with its save rules. If you use Path Hash from a release candidate, upgrade replicas and primaries in an order that avoids mixed-version replication. Decide whether to adopt DELEX, keeping DELIFEQ if you still support Valkey 9.0 and avoiding the digest options if code is shared with Redis. Then run your integration suite against a 9.2 staging server, because the models in this guide describe the documented changes, and only the server can confirm your application's behaviour against them.

Primary references and authorship

Sources checked 2026-11-25. Original explanation and synthetic examples by Sandeep Belgavi. Companion code: Sandeep-BA/agent-decision-lab/examples/python/valkey_9_2_upgrade_checks. Views are my own and do not represent any employer, past or present.