diff options
author | dormando <dormando@rydia.net> | 2022-08-01 23:33:48 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-08-03 11:53:33 -0700 |
commit | 4f27245d04e6bd0e7b32b2f930fe78bbae1080df (patch) | |
tree | a4d786d5fd74d28adff42939a3fbc530d9dcfab4 /proxy_lua.c | |
parent | 71c7d8604713104fd9b6ad54c28dbdaa047251d8 (diff) | |
download | memcached-4f27245d04e6bd0e7b32b2f930fe78bbae1080df.tar.gz |
proxy: add req:flag_token("F")
function accepts a flag, returns (bool, token|nil).
bool indicates if the flag exists, and if the flag has a token it is
returned instead of nil as the second value.
Diffstat (limited to 'proxy_lua.c')
-rw-r--r-- | proxy_lua.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/proxy_lua.c b/proxy_lua.c index d611a45..021ae74 100644 --- a/proxy_lua.c +++ b/proxy_lua.c @@ -815,6 +815,7 @@ int proxy_register_libs(LIBEVENT_THREAD *t, void *ctx) { {"token", mcplib_request_token}, {"ntokens", mcplib_request_ntokens}, {"has_flag", mcplib_request_has_flag}, + {"flag_token", mcplib_request_flag_token}, {"__tostring", NULL}, {"__gc", mcplib_request_gc}, {NULL, NULL} |