Skip to content
Browse files

Documented the STATS command.

  • Loading branch information...
1 parent 2afd47b commit 67d881f3910b108e9feae2dc641024ea4682ee57 @dustin committed Oct 29, 2008
Showing with 30 additions and 0 deletions.
  1. +30 −0 README.markdown
View
30 README.markdown
@@ -79,3 +79,33 @@ Returns:
Disconnect your connection.
+## stats
+
+Get some server stats.
+
+Returns:
+
+* 200 STATS - beginning of a stat stream (see below)
+
+The stats output is multi-line, so the protocol handling is a little different
+from all of the other commands.
+
+The initial response is
+
+ 200 STATS
+
+which is followed by several values in the following form:
+
+ STAT [key] [value]
+
+and then one terminating value:
+
+ END
+
+A complete example is as follows:
+
+ 200 STATS
+ STAT clients 0
+ STAT locks 0
+ STAT monitoring 0
+ END

0 comments on commit 67d881f

Please sign in to comment.
Something went wrong with that request. Please try again.