summaryrefslogtreecommitdiffstats
path: root/src/commands/acl-whoami.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/acl-whoami.json')
-rw-r--r--src/commands/acl-whoami.json21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/commands/acl-whoami.json b/src/commands/acl-whoami.json
new file mode 100644
index 0000000..2efe98c
--- /dev/null
+++ b/src/commands/acl-whoami.json
@@ -0,0 +1,21 @@
+{
+ "WHOAMI": {
+ "summary": "Returns the authenticated username of the current connection.",
+ "complexity": "O(1)",
+ "group": "server",
+ "since": "6.0.0",
+ "arity": 2,
+ "container": "ACL",
+ "function": "aclCommand",
+ "command_flags": [
+ "NOSCRIPT",
+ "LOADING",
+ "STALE",
+ "SENTINEL"
+ ],
+ "reply_schema": {
+ "type": "string",
+ "description": "The username of the current connection."
+ }
+ }
+}