Skip to content

feat: regenerate client stubs + add new client methods#142

Merged
kacy merged 4 commits intomainfrom
feat/grpc-client-updates
Feb 15, 2026
Merged

feat: regenerate client stubs + add new client methods#142
kacy merged 4 commits intomainfrom
feat/grpc-client-updates

Conversation

@kacy
Copy link
Owner

@kacy kacy commented Feb 15, 2026

summary

regenerates python and go protobuf stubs from the updated proto, then adds high-level client methods for all new RPCs:

  • echo, decr, unlink — basic commands
  • bgsave, bgrewriteaof — persistence operations
  • slowlog_get/len/reset — slowlog introspection
  • publish, subscribe, pubsub_channels/numsub/numpat — pub/sub

python subscribe() returns a generator yielding event dicts. go Subscribe() returns a <-chan SubscribeEvent.

depends on #141.

what was tested

  • go build ./... in ember-go — compiles cleanly
  • verified python stubs contain all new message types and RPC definitions

kacy added 4 commits February 14, 2026 18:52
adds Echo, Decr, Unlink, BgSave, BgRewriteAof, SlowLog (get/len/reset),
Publish, Subscribe (server-streaming), PubSubChannels, PubSubNumSub,
PubSubNumPat to the EmberCache service definition.

includes corresponding message types and pipeline request/response
variants for all new unary commands.
implements Echo, Decr, Unlink, BgSave, BgRewriteAof, SlowLog
(get/len/reset), Publish, Subscribe (server-streaming), PubSubChannels,
PubSubNumSub, PubSubNumPat.

Subscribe uses server-side streaming — the client sends channel/pattern
lists and receives a stream of SubscribeEvent messages. cleanup runs
automatically when the client disconnects.

also passes PubSubManager to EmberService for pub/sub operations, and
adds all new unary commands to the pipeline dispatch macro.
adds echo, decr, unlink, bgsave, bgrewriteaof, slowlog (get/len/reset),
publish, subscribe, and pubsub introspection to both clients.

python subscribe() returns an iterator; go Subscribe() returns a channel.
Base automatically changed from feat/grpc-complete-api to main February 15, 2026 00:11
@kacy kacy merged commit bf3832d into main Feb 15, 2026
@kacy kacy deleted the feat/grpc-client-updates branch February 15, 2026 00:12
kacy added a commit that referenced this pull request Feb 19, 2026
* feat: add new rpc definitions to proto

adds Echo, Decr, Unlink, BgSave, BgRewriteAof, SlowLog (get/len/reset),
Publish, Subscribe (server-streaming), PubSubChannels, PubSubNumSub,
PubSubNumPat to the EmberCache service definition.

includes corresponding message types and pipeline request/response
variants for all new unary commands.

* feat: implement new grpc rpc handlers

implements Echo, Decr, Unlink, BgSave, BgRewriteAof, SlowLog
(get/len/reset), Publish, Subscribe (server-streaming), PubSubChannels,
PubSubNumSub, PubSubNumPat.

Subscribe uses server-side streaming — the client sends channel/pattern
lists and receives a stream of SubscribeEvent messages. cleanup runs
automatically when the client disconnects.

also passes PubSubManager to EmberService for pub/sub operations, and
adds all new unary commands to the pipeline dispatch macro.

* chore: regenerate python and go protobuf stubs

* feat: add new methods to python and go clients

adds echo, decr, unlink, bgsave, bgrewriteaof, slowlog (get/len/reset),
publish, subscribe, and pubsub introspection to both clients.

python subscribe() returns an iterator; go Subscribe() returns a channel.
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.

1 participant