feat: regenerate client stubs + add new client methods#142
Merged
Conversation
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 commandsbgsave,bgrewriteaof— persistence operationsslowlog_get/len/reset— slowlog introspectionpublish,subscribe,pubsub_channels/numsub/numpat— pub/subpython
subscribe()returns a generator yielding event dicts. goSubscribe()returns a<-chan SubscribeEvent.depends on #141.
what was tested
go build ./...in ember-go — compiles cleanly