Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

CLIENT GETNAME

Last updated
CLIENT GETNAME
Group
Connection
Complexity
O(1)
Arity
2 (exactly, counting the command name)
HotKV Cloud
All plans
On-Premise
no license needed

CLIENT GETNAME returns the name set with CLIENT SETNAME or the SETNAME option of HELLO.

Case RESP2 RESP3
Name set Bulk string Bulk string
No name Nil bulk string Null
127.0.0.1:6379> CLIENT GETNAME
(nil)
127.0.0.1:6379> CLIENT SETNAME api-1
OK
127.0.0.1:6379> CLIENT GETNAME
"api-1"

Same as Redis 7 and Valkey 8.

CLIENT SETNAME, CLIENT INFO