Skip to content

Commit

Permalink
Docs: Add a note about client_setname and client_name difference (#2247)
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 committed Jun 23, 2022
1 parent 6da8086 commit d3a7a75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions redis/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,12 @@ def client_setname(self, name: str, **kwargs) -> ResponseT:
Sets the current connection name
For more information see https://redis.io/commands/client-setname
.. note::
This method sets client name only for **current** connection.
If you want to set a common name for all connections managed
by this client, use ``client_name`` constructor argument.
"""
return self.execute_command("CLIENT SETNAME", name, **kwargs)

Expand Down

0 comments on commit d3a7a75

Please sign in to comment.