Raw cmd for special usages#17
Open
bisho wants to merge 1 commit into
Open
Conversation
This was referenced Mar 17, 2026
Merged
Member
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Mar 17, 2026
Open
|
@claude review this pr |
ccc5efa to
700ddfe
Compare
700ddfe to
85a47cc
Compare
85a47cc to
40b3616
Compare
40b3616 to
bb9fb20
Compare
bb9fb20 to
cb290c6
Compare
cb290c6 to
f1f281e
Compare
b4355f6 to
f582779
Compare
f1f281e to
3d19e20
Compare
738c0b9 to
ffe2649
Compare
a30bec7 to
05b2753
Compare
05b2753 to
f005aee
Compare
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.

Motivation / Description
This change adds a raw command passthrough capability to the memcache socket implementation, allowing users to send arbitrary memcache protocol commands and receive the raw response bytes. This is useful for accessing memcache features that may not have dedicated high-level methods or for debugging purposes.
Its implementation is not performance oriented, since this should not be used.
Possible usages: flush for test suites, stats commands...
Changes introduced
raw_cmdmethod toMemcacheSocketclass that accepts raw command bytes and an optionalmulti_lineparameter\r\nto commands if not already present\r\nand returns the content before itEND\r\nand returns all content before the terminator