Skip to content

Commit d3a7a75

Browse files
authored
Docs: Add a note about client_setname and client_name difference (#2247)
1 parent 6da8086 commit d3a7a75

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

redis/commands/core.py

+6
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,12 @@ def client_setname(self, name: str, **kwargs) -> ResponseT:
687687
Sets the current connection name
688688
689689
For more information see https://redis.io/commands/client-setname
690+
691+
.. note::
692+
This method sets client name only for **current** connection.
693+
694+
If you want to set a common name for all connections managed
695+
by this client, use ``client_name`` constructor argument.
690696
"""
691697
return self.execute_command("CLIENT SETNAME", name, **kwargs)
692698

0 commit comments

Comments
 (0)