This is a preview of PR #814, not valkey.io.

ACL WHOAMI

Usage:
ACL WHOAMI
Complexity:
O(1)
Since:
6.0.0
ACL Categories:
@slow

Return the username the current connection is authenticated with. New connections are authenticated with the "default" user. They can change user using AUTH.

Reply#

String: the username of the current connection.

Examples#

127.0.0.1:6379> ACL WHOAMI
"default"