summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHemal Shah <hemal@stripe.com>2022-10-19 19:17:13 -0700
committerdormando <dormando@rydia.net>2023-03-15 17:16:36 -0700
commit9b3c946f485309cdf50f7fb1622707b5373e33f3 (patch)
tree50442521e1d2912caddfe0266f5223b0f4b48fb3 /doc
parentc04701654413719d4abd7645c6d7b3fba4255e85 (diff)
downloadmemcached-9b3c946f485309cdf50f7fb1622707b5373e33f3.tar.gz
log: Add a new watcher to watch for deletions.
`watch deletions`: would log all keys which are deleted using either `delete` or `md` command. The log line would contain the command used, the key, the clsid and size of the deleted item. Items which result in delete miss or are marked as stale wouldn't show up in the logs
Diffstat (limited to 'doc')
-rw-r--r--doc/protocol.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/protocol.txt b/doc/protocol.txt
index 8a261ed..cd476db 100644
--- a/doc/protocol.txt
+++ b/doc/protocol.txt
@@ -1174,7 +1174,7 @@ Watchers are a way to connect to memcached and inspect what's going on
internally. This is an evolving feature so new endpoints should show up over
time.
-watch <fetchers|mutations|evictions|connevents>
+watch <fetchers|mutations|evictions|connevents|deletions>
- Turn connection into a watcher. Options can be stacked and are
space-separated. Logs will be sent to the watcher until it disconnects.
@@ -1223,6 +1223,9 @@ The arguments are:
- "proxyuser": Emits log entries created from lua configuration files.
+- "deletions": Emits logs when an item is successfully deleted from the
+ cache using `delete` or `md` commands. delete misses wouldn't be logged
+
Statistics
----------