Skip to content

V4 - #7

Merged
pairbit merged 3 commits into
pairbit:v4from
seredis:v4
Dec 3, 2026
Merged

V4#7
pairbit merged 3 commits into
pairbit:v4from
seredis:v4

Conversation

@pairbit

@pairbit pairbit commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Checklist

  • I fully and freely contribute this code in accordance with the project license (and am legally able to do so)
  • I take responsibility for this contribution's quality and correctness, including any portions produced with AI assistance (see CONTRIBUTING.md).

* design: generated scripts and functions (exploratory)

A shape for declaring server-side code as partial methods: binding by name, shared call shape, per-kind provisioning; facts checked against Redis 8.12.

* design: functions are opaque names; administration on IServer, not in the pipeline

* design: lists of keys and arguments, and how a script sees them

* design: the general case - declared commands, after the marc/respite RespCommandGenerator

* design: keyword clauses (prefix, suffix, count, ignore-when) as the core of the declared-command model
…cates), from main's #3343 (#3399)

* CI (Windows): let Redis 8.12 start the cluster nodes

8.12 refuses a cluster node with an unauthenticated bus port unless cluster-bus-port-protected-mode is off; older servers reject the option, so it is passed only to 8.12 and later.

* Redis 8.12 test topology, ported from main's #3343: cluster-bus-port-protected-mode in the cluster confs, client-libs-test:8.12.0, and ZSCAN may return duplicates

Replaces the version-gated CI.yml option: main already solves this in the cluster confs, and v4 follows it.
…he caller's spans (#3398)

* Scripts: build the NOSCRIPT retry from the rendered EVALSHA, not the caller's spans

The repair captured keys/args with ToArray() whenever the send had not completed synchronously. That copied the RedisValues but not the memory under them, so a caller who returned a pooled buffer after the call returned had the retry send whatever was there by the time NOSCRIPT arrived; and it cost two arrays on almost every real call.

The retry now holds a reference to the rendered EVALSHA (a reference count, no copy) and re-renders EVAL from its arguments through the command map, without re-applying the key prefix the keys already carry.

* SendWithPreambleAsync: the gate and cancellation token are required, not defaulted

Internal, so correctness wins over convenience: a caller that forgets to pass its token should not compile.
@pairbit
pairbit merged commit 9ddd336 into pairbit:v4 Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants