From 9b3c946f485309cdf50f7fb1622707b5373e33f3 Mon Sep 17 00:00:00 2001 From: Hemal Shah Date: Wed, 19 Oct 2022 19:17:13 -0700 Subject: 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 --- doc/protocol.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc') 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 +watch - 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 ---------- -- cgit v1.2.1