Skip to content

feat(redis): add redis.v1 RPC messages - #82

Merged
rustatian merged 3 commits into
masterfrom
feat/redis-rpc
Oct 11, 2026
Merged

rustatian merged 3 commits into
masterfrom
feat/redis-rpc

Conversation

@rustatian

@rustatian rustatian commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

Reason for This PR

roadrunner-server/roadrunner#1195: the KV plugin exposes only the generic get, set, has, delete and TTL operations, so there is no race-safe way to run Redis-native commands such as INCRBY from PHP. This PR adds the message definitions for a redis.* RPC service exposed by the redis plugin.

Description of Changes

  • Add roadrunner/api/redis/v1/redis.proto with the redis.v1 package: one request message per command for strings and counters, keys, hashes, lists, sets and sorted sets, and a small set of shared reply messages (IntReply, BytesReply, BytesListReply, MapReply, ScoredMembersReply, ScanReply and others).
  • Every request starts with a connection field that selects a named connection from the plugin's redis config section. Nil replies are modelled with optional fields, so a missing key is data and not an error.

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the MIT license.

PR Checklist

  • All commits in this PR are signed (git commit -s).
  • The reason for this PR is clearly provided (issue no. or explanation).
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this PR.
  • Any user-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.

Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Copilot AI balanced review requested due to automatic review settings October 11, 2026 11:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@rustatian rustatian self-assigned this Oct 11, 2026
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
This reverts commit 87c5b87. The connection
field names the KV storage that provides the Redis client.

Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
@rustatian
rustatian merged commit e1221a2 into master Oct 11, 2026
1 check passed
@rustatian
rustatian deleted the feat/redis-rpc branch October 11, 2026 12:04
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