diff options
author | dormando <dormando@rydia.net> | 2022-08-08 23:58:56 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-08-09 10:50:33 -0700 |
commit | efacd3090e8d3407c60a2e3df53fa9cc7534c45f (patch) | |
tree | 8e4395886f82b2ce22441dee20d7744c9a9d16bb /t/startfile.lua | |
parent | 1c73cbdc6d226bdc97baee02a1bb822d6ef8b5d5 (diff) | |
download | memcached-efacd3090e8d3407c60a2e3df53fa9cc7534c45f.tar.gz |
proxy: req:flag_token("F", "Freplacement")
returns (exists, previous_token)
optional second argument will replace the flag/token with supplied
flag/token, or nothing if "" is passed.
Diffstat (limited to 't/startfile.lua')
-rw-r--r-- | t/startfile.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/startfile.lua b/t/startfile.lua index e60c05c..29e3d9b 100644 --- a/t/startfile.lua +++ b/t/startfile.lua @@ -167,6 +167,8 @@ function meta_get_factory(zones, local_zone) print("client asking for last access time") end local texists, token = r:flag_token("O") + -- next example returns the previous token and replaces it. + -- local texists, token = r:flag_token("O", "Odoot") if token ~= nil then print("meta opaque flag token: " .. token) end |