summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/slowlog-len.md
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--iredis/data/commands/slowlog-len.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/iredis/data/commands/slowlog-len.md b/iredis/data/commands/slowlog-len.md
new file mode 100644
index 0000000..6f0d977
--- /dev/null
+++ b/iredis/data/commands/slowlog-len.md
@@ -0,0 +1,12 @@
+This command returns the current number of entries in the slow log.
+
+A new entry is added to the slow log whenever a command exceeds the execution time threshold defined by the `slowlog-log-slower-than` configuration directive.
+The maximum number of entries in the slow log is governed by the `slowlog-max-len` configuration directive.
+Once the slog log reaches its maximal size, the oldest entry is removed whenever a new entry is created.
+The slow log can be cleared with the `SLOWLOG RESET` command.
+
+@reply
+
+@integer-reply
+
+The number of entries in the slow log.