From 6d36807a101f8deb9af40c1ec05d33ab08c5d475 Mon Sep 17 00:00:00 2001 From: dormando Date: Fri, 4 Feb 2022 12:15:02 -0800 Subject: meta: add "proxy tokens" P, L which are ignored see doc/protocol.txt --- doc/protocol.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc') diff --git a/doc/protocol.txt b/doc/protocol.txt index 5fceccc..ac44b32 100644 --- a/doc/protocol.txt +++ b/doc/protocol.txt @@ -123,6 +123,13 @@ can return new data or reflect information, in the same order they were supplied in the request. Sending an 't' flag with a get for an item with 20 seconds of TTL remaining, would return 't20' in the response. +All commands accept a tokens 'P' and 'L' which are completely ignored. The +arguments to 'P' and 'L' can be used as hints or path specifications to a +proxy or router inbetween a client and a memcached daemon. For example, a +client may prepend a "path" in the key itself: "mg /path/foo v" or in a proxy +token: "mg foo Lpath/ v" - the proxy may then optionally remove or forward the +token to a memcached daemon, which will ignore them. + Syntax errors are handled the same as noted under 'Error strings' section below. -- cgit v1.2.1