Skip to content

feat: support command cas, stats $memc_value #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

syzh
Copy link

@syzh syzh commented Aug 8, 2020

support command:

  • cas
  • stats $memc_value


u->input_filter_init = ngx_http_memc_empty_filter_init;
u->input_filter = ngx_http_memc_empty_filter;
} else if (memc_cmd == ngx_http_memc_cmd_version) {
Copy link
Member

Choose a reason for hiding this comment

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

Style: needs a blank line before } else if ....

}

if (!ngx_http_memc_valid_uint32_str(unique_token_vv->data,
unique_token_vv->len)) {
Copy link
Member

Choose a reason for hiding this comment

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

Style: { should be on its own line for this.

See the nginx coding style doc for more details:

https://openresty.org/en/c-coding-style-guide.html

@@ -124,6 +125,12 @@ ngx_http_memc_create_storage_cmd_request(ngx_http_request_t *r)
+ bytes_len
+ sizeof(CRLF) - 1;


Copy link
Member

Choose a reason for hiding this comment

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

Only 1 blank line should be used here.


return NGX_HTTP_BAD_REQUEST;
}
ctx->memc_unique_token_vv = unique_token_vv;
Copy link
Member

Choose a reason for hiding this comment

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

Needs a blank line before this line.

@syzh syzh requested a review from agentzh August 31, 2020 02:08
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